joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4272ab
Capabilities:
Enumerate files on windows

Disassembly:
push 0x288
mov eax, 0x499f96
call fcn.00498c62
mov edx, ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x274], eax
xor ebx, ebx
call fcn.00461ca8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
mov ecx, eax
mov edx, dword [edx + 4]
mov dword [ebp - 0x20], eax
call fcn.00461c8f
mov esi, eax
test esi, esi
jns 0x4272fe
mov ecx, dword [ebp + 4]
push esi
push 0x4055d0
push 0x67
pop edx
call fcn.0041ff4a
jmp 0x427349
mov ecx, dword [ebp - 0x20]
mov edx, 0x40560c
call fcn.00461ec6
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044cb8b
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x278], edi
cmp edi, 0xffffffff
jne 0x427446
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x427347
movzx ebx, bx
or ebx, 0x80070000
mov esi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
xor edx, edx
inc edx
call fcn.00462134
mov eax, esi
call fcn.00498c11
ret 0xc
lea eax, [ebp - 0x244]
push 0x4054dc
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x427446
lea eax, [ebp - 0x244]
push 0x405614
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x427446
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x427446
mov edi, dword [ebp + 8]
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x4273b8
mov eax, dword [eax]
lea ecx, [ebp - 0x244]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x427435
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], ebx
lea edx, [ecx + 2]
mov word [ebp - 0x290], ax
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4273ec
sub ecx, edx
lea eax, [ebp - 0x244]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x294]
call fcn.00423249
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x294]
push eax
mov byte [ebp - 4], 1
call fcn.00427b27
push ebx
push 1
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], bl
call fcn.00423d6e
mov esi, dword [esi]
cmp esi, dword [edi + 4]
jne 0x4273ad
mov edi, dword [ebp - 0x278]
lea eax, [ebp - 0x270]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x427362
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x427347
Function at 0x427468
Capabilities:
Enumerate files on windows

Disassembly:
push 0x280
mov eax, 0x499fd1
call fcn.00498c62
mov edx, ecx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
xor ebx, ebx
call fcn.00461ca8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
mov ecx, eax
mov edx, dword [edx]
mov dword [ebp - 0x20], eax
call fcn.00461c8f
mov esi, eax
test esi, esi
jns 0x4274b6
mov ecx, dword [ebp + 4]
mov edx, 0x91
push esi
push 0x4055d0
call fcn.0041ff4a
jmp 0x4274fb
mov ecx, dword [ebp - 0x20]
mov edx, 0x40560c
call fcn.00461ec6
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044cb8b
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4275ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4274f9
movzx ebx, bx
or ebx, 0x80070000
mov esi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
xor edx, edx
inc edx
call fcn.00462134
mov eax, esi
call fcn.00498c11
ret 8
lea eax, [ebp - 0x244]
push 0x4054dc
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4275ab
lea eax, [ebp - 0x244]
push 0x405614
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4275ab
xor eax, eax
mov dword [ebp - 0x274], 7
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x278], ebx
mov word [ebp - 0x288], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x427566
sub ecx, edx
lea eax, [ebp - 0x244]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.00423249
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00427b27
push ebx
push 1
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], bl
call fcn.00423d6e
lea eax, [ebp - 0x270]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x427514
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4274f9
Function at 0x4276ce
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 0xc]
mov esi, dword [ebx]
xor edi, edi
push dword [ebp + 8]
push 0x405620
mov ecx, dword [esi + 0x50]
push ebx
call dword [0x4a8384]
call dword [esi + 0x50]
add esp, 0x10
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x42773a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x427721
movzx edi, di
or edi, 0x80070000
mov eax, dword [ebx]
push edi
push 0x405660
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x4a8384]
mov ecx, ebx
call esi
jmp 0x427757
push dword [ebp + 0xc]
mov esi, dword [ebx]
push dword [ebp + 8]
push 0x405680
mov ecx, dword [esi + 0x50]
push ebx
call dword [0x4a8384]
call dword [esi + 0x50]
add esp, 0x10
test edi, edi
js 0x427800
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4277e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x427781
movzx ecx, cx
or ecx, 0x80070000
mov eax, dword [ebx]
push ecx
push 0x4056c8
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x4a8384]
mov ecx, ebx
call esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4277de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x4277c5
movzx ecx, cx
or ecx, 0x80070000
mov eax, dword [ebx]
push ecx
push 0x405710
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x4a8384]
mov ecx, ebx
call esi
jmp 0x427800
mov eax, dword [ebx]
mov esi, dword [eax + 0x50]
jmp 0x4277ea
mov ecx, dword [ebx]
mov esi, dword [ecx + 0x50]
push dword [ebp + 8]
mov ecx, esi
push 0x405754
push ebx
call dword [0x4a8384]
call esi
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x427809
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x294
mov eax, 0x49a03e
call fcn.00498c62
mov dword [ebp - 0x29c], edx
mov ebx, ecx
push ebx
lea ecx, [ebp - 0x48]
xor edi, edi
call fcn.00422f36
and dword [ebp - 4], edi
lea ecx, [ebp - 0x48]
push 0x40560c
call fcn.00422f0d
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x427847
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42797a
lea eax, [ebp - 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x2a0], eax
mov ecx, 0x4054dc
lea eax, [ebp - 0x26c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4278a5
test dx, dx
je 0x4278a1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4278a5
add eax, 4
add ecx, 4
test dx, dx
jne 0x42787f
xor eax, eax
jmp 0x4278aa
sbb eax, eax
or eax, 1
test eax, eax
je 0x427966
mov ecx, 0x405614
lea eax, [ebp - 0x26c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4278e3
test dx, dx
je 0x4278df
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4278e3
add eax, 4
add ecx, 4
test dx, dx
jne 0x4278bd
xor eax, eax
jmp 0x4278e8
sbb eax, eax
or eax, 1
test eax, eax
je 0x427966
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00422f36
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00422f0d
test byte [ebp - 0x298], 0x10
je 0x427943
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x42791d
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x29c]
call fcn.00427809
mov edi, eax
test edi, edi
js 0x427956
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x42793a
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x427956
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42794f
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00423d6e
cmp dword [ebp - 0x2a0], 0
jne 0x427860
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00423d6e
mov eax, edi
call fcn.00498c11
ret
Function at 0x42798e
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x4a72a4]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov edi, edx
push eax
lea eax, [esp + 0x18]
mov ebx, ecx
push eax
xor esi, esi
mov ecx, edi
push 0x104
mov dword [esp + 0x1c], esi
call fcn.0044cad3
mov edx, ebx
mov ecx, eax
call fcn.0042f9b8
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x427af4
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x427af4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x427af4
push 0x208
lea eax, [esp + 0x2c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x28]
push dword [esp + 0x14]
push 0x404d64
push 0x104
push eax
call fcn.0041eea8
add esp, 0x10
mov esi, eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test esi, esi
js 0x427b09
mov ecx, dword [edi]
lea edx, [esp + 0x28]
push 0x5c
call fcn.00461f76
mov edx, ebx
mov ecx, eax
call fcn.0042f9b8
test al, al
jne 0x427b09
mov ecx, edi
call fcn.0044d094
cmp eax, 0x104
jbe 0x427ace
xor eax, eax
mov ecx, edi
mov dword [esp + 0x10], eax
call fcn.0044cb8b
lea edx, [esp + 0x10]
mov ecx, eax
call fcn.0043022d
mov esi, eax
test esi, esi
js 0x427b09
mov ecx, dword [esp + 0x10]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x427ab1
sub ecx, edx
sar ecx, 1
push ecx
push dword [esp + 0x14]
mov ecx, edi
call fcn.0044c9b5
mov esi, eax
test esi, esi
js 0x427b09
xor eax, eax
mov ecx, edi
push eax
call fcn.0044cb8b
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x427b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x427b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x427b09
movzx esi, si
or esi, 0x80070000
mov edx, ebx
mov ecx, esi
call fcn.00427be7
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004981f0
mov esp, ebp
pop ebp
ret

Function at 0x42fd5d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42fd82
mov ecx, dword [ebp + 8]
shr eax, 4
not al
and al, 1
mov byte [ecx], al
jmp 0x42fd99
mov eax, dword [edi]
push esi
push 0xdef00512
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x4a8384]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x4a8384]
mov ecx, edi
call esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4458de
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c50a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4a72a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x445922
mov ecx, esi
call fcn.00441e8e
push esi
call sub.msvcrt.dll_free
pop ecx
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x44592f
push ecx
call fcn.004459fa
cmp dword [ebx + 0x40], 0
je 0x445973
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x40]
dec ecx
add edx, ecx
mov ecx, edx
and edx, 3
shr ecx, 2
cmp dword [ebx + 0x38], ecx
ja 0x44594e
sub ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax + ecx*4]
mov ecx, dword [ecx + edx*4]
call fcn.0043632a
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x445973
sub eax, 1
mov dword [ebx + 0x40], eax
jne 0x44596f
and dword [ebx + 0x3c], 0
test eax, eax
jne 0x445935
lea ecx, [ebx + 0x18]
lea edx, [ecx + 0x18]
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
cmp ecx, edx
je 0x4459c8
mov edi, dword [eax + 4]
mov esi, dword [edi]
cmp esi, edi
je 0x4459bb
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4459ab
mov eax, dword [eax]
push 1
mov ebx, dword [eax]
mov ecx, ebx
call dword [0x4a8384]
mov ecx, dword [ebp - 0x14]
call ebx
and dword [esi + 8], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x44598e
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add eax, 0xc
mov dword [ebp - 0x10], eax
cmp eax, edx
jne 0x445985
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebx + 0x4c]
call fcn.0043d841
lea ecx, [ebx + 0x30]
call fcn.00446921
push fcn.00424fd0
push 2
push 0xc
lea eax, [ebx + 0x18]
push eax
call fcn.00498b83
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451633
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, edx
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebx], ecx
mov dword [eax], ecx
lea ecx, [ebp - 8]
push edi
call fcn.00452065
push eax
sub esp, 0x10
mov ecx, esi
call fcn.004619b6
mov esi, eax
test esi, esi
jns 0x45167a
mov edx, 0x84
jmp 0x451721
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x14]
call fcn.00461a01
mov esi, eax
test esi, esi
jns 0x451695
mov edx, 0x85
jmp 0x451721
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.00452065
mov esi, eax
test esi, esi
jne 0x4516ad
mov esi, 0x80070057
jmp 0x4516e1
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x4516db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4516df
movzx esi, si
or esi, 0x80070000
jmp 0x4516dd
xor esi, esi
test esi, esi
jns 0x4516e8
mov edx, 0x86
jmp 0x451721
push 0
push 0
push 0
push 4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x451716
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x45171a
movzx esi, si
or esi, 0x80070000
jmp 0x451718
xor esi, esi
test esi, esi
jns 0x451731
mov edx, 0x87
mov ecx, dword [ebp + 4]
push esi
push 0x40fd74
call fcn.0041ff4a
jmp 0x45173d
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45174f
cmp eax, 0xffffffff
je 0x45174f
push eax
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x451761
cmp ecx, 0xffffffff
je 0x451761
push ecx
call sub.KERNEL32.dll_CloseHandle
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x45fda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov esi, 0x3482
movzx eax, word [ebx]
test ax, ax
je 0x45fddc
and edi, 1
movzx eax, ax
test edi, edi
je 0x45fdcb
push eax
call dword [sym.imp.msvcrt.dll_towlower]
pop ecx
movzx eax, ax
add ebx, 2
add esi, esi
xor esi, eax
movzx ecx, word [ebx]
mov eax, ecx
test cx, cx
jne 0x45fdb9
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x461a63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
not ecx
cmp dword [ebp + 8], esi
jbe 0x461a8b
movzx eax, byte [esi + edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x410150]
inc esi
cmp esi, dword [ebp + 8]
jb 0x461a72
not ecx
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x461a94
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
mov edx, 0xffff5432
cmp dword [ebp + 0xc], esi
jbe 0x461ad8
push edi
mov edi, dword [ebp + 8]
movzx ecx, word [edi + esi*2]
mov eax, ecx
shr ecx, 8
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x410150]
xor ecx, edx
shr edx, 8
movzx eax, cl
xor edx, dword [eax*4 + 0x410150]
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x461aaa
pop edi
not edx
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x47063e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
call fcn.00450bf2
test al, al
je 0x470666
mov esi, 0x80070057
mov edx, 0x1b1
jmp 0x47077b
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x47069c
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x4a8384]
mov ecx, edi
call esi
mov esi, eax
test esi, esi
jns 0x47068e
mov edx, 0x1b7
jmp 0x47077b
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x470771
xor ebx, ebx
cmp dword [edi + 0x28], ebx
je 0x470771
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4706da
mov ecx, dword [ebp + 4]
mov edx, 0x1bf
push 0x410844
call fcn.0041ff67
mov ebx, eax
jmp 0x47075a
lea ecx, [ebp - 4]
mov byte [ebp - 0xc], 1
push ebx
mov dword [ebp - 0x14], ecx
lea edx, [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], edx
push ecx
push dword [edi + 0x28]
mov dword [ebp - 8], ebx
push dword [edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47070a
mov edx, 0x1c8
jmp 0x47073e
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 0x28]
je 0x47072c
mov ecx, dword [ebp + 4]
mov ebx, 0xdef00116
push ebx
push 0x410844
mov edx, 0x1c9
call fcn.0041ff4a
jmp 0x470752
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x47074f
mov edx, 0x1ca
mov ecx, dword [ebp + 4]
push 0x410844
call fcn.0041ff67
mov ebx, eax
jmp 0x470752
mov byte [ebp - 0xc], bl
lea ecx, [ebp - 0x14]
call fcn.00470792
mov eax, dword [ebp - 4]
test eax, eax
je 0x47076d
cmp eax, 0xffffffff
je 0x47076d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x47078b
mov esi, 0xdef00191
mov edx, 0x1ba
mov ecx, dword [ebp + 4]
push esi
push 0x410844
call fcn.0041ff4a
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x47477c
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4a72a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4747ba
mov edx, esi
mov ecx, dword [ebp + 4]
push 0x410908
call fcn.0041ff67
jmp 0x474899
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x4747d2
mov edx, 0x107
jmp 0x4747a8
and dword [ebp - 0x224], 0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x4747f8
mov edx, 0x10a
jmp 0x4747a8
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push dword [ebp - 0x224]
push 0x404d64
push esi
push eax
call fcn.0041eea8
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test esi, esi
jns 0x474840
mov eax, esi
jmp 0x474899
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.0041ee11
mov esi, eax
test esi, esi
jns 0x474869
mov ecx, dword [ebp + 4]
mov edx, 0x114
push esi
push 0x410908
call fcn.0041ff4a
jmp 0x47483c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x474897
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x474897
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x474899
movzx eax, ax
or eax, 0x80070000
jmp 0x474899
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004981f0
leave
ret

Function at 0x4748a7
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0xc]
call fcn.00461ca8
lea eax, [ebp - 0xc]
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.0044cb8b
mov edx, eax
lea ecx, [ebp - 0xc]
call fcn.00461e4c
mov esi, eax
test esi, esi
jns 0x4748e2
mov edx, 0x120
jmp 0x47494a
mov ecx, dword [ebp - 0x10]
mov edx, edi
push 0x5c
call fcn.00461f76
mov esi, eax
test esi, esi
jns 0x4748fb
mov edx, 0x121
jmp 0x47494a
push 0
lea ecx, [ebp - 0x10]
call fcn.0044cb8b
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x474934
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x474934
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x47495c
movzx esi, si
or esi, 0x80070000
jmp 0x47495c
mov ecx, dword [ebx]
mov edx, edi
push 0x5c
call fcn.00461f76
mov esi, eax
test esi, esi
jns 0x47495a
mov edx, 0x127
mov ecx, dword [ebp + 4]
push esi
push 0x410908
call fcn.0041ff4a
jmp 0x47495c
xor esi, esi
xor edx, edx
lea ecx, [ebp - 0xc]
inc edx
call fcn.00462134
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48804d
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov dword [ebp - 0xc], ecx
mov ecx, edx
push esi
mov dword [ebp - 8], edx
xor edx, edx
push 3
lea eax, [ecx + 2]
mov ebx, dword [ebp + 8]
pop esi
div esi
mov edx, dword [ebp + 0x10]
lea eax, [eax*4 + 1]
test edx, edx
je 0x48807c
mov dword [edx], eax
cmp dword [ebp + 0xc], 0
jne 0x48808a
test ebx, ebx
je 0x488166
cmp dword [ebp + 0xc], eax
jae 0x488099
mov eax, 0x8007000e
jmp 0x488168
push edi
xor edi, edi
xor esi, esi
test ecx, ecx
je 0x48813d
mov eax, dword [ebp - 0xc]
mov dh, byte [esi + eax]
inc esi
cmp esi, ecx
jae 0x4880ba
lfence
mov dl, byte [esi + eax]
inc esi
jmp 0x4880bc
xor dl, dl
cmp esi, ecx
jae 0x4880cc
lfence
mov al, byte [esi + eax]
inc esi
mov byte [ebp - 1], al
jmp 0x4880d0
mov byte [ebp - 1], 0
movzx ecx, dh
mov eax, ecx
movzx edx, dl
shr eax, 2
and ecx, 3
shl ecx, 4
mov ax, word [eax*2 + 0x417c20]
mov word [ebx + edi*2], ax
mov eax, edx
shr eax, 4
and edx, 0xf
or eax, ecx
shl edx, 2
movzx ecx, byte [ebp - 1]
mov ax, word [eax*2 + 0x417c20]
mov word [ebx + edi*2 + 2], ax
mov eax, ecx
shr eax, 6
and ecx, 0x3f
or eax, edx
mov ax, word [eax*2 + 0x417c20]
mov word [ebx + edi*2 + 4], ax
mov ax, word [ecx*2 + 0x417c20]
mov ecx, dword [ebp - 8]
mov word [ebx + edi*2 + 6], ax
add edi, 4
cmp esi, ecx
jb 0x4880a6
push 3
mov eax, ecx
xor edx, edx
pop ecx
div ecx
push 0x3d
pop eax
sub edx, 1
je 0x488155
sub edx, 1
je 0x48815a
jmp 0x48815f
mov word [ebx + edi*2 - 4], ax
mov word [ebx + edi*2 - 2], ax
xor eax, eax
mov word [ebx + edi*2], ax
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x48da91
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
call fcn.0043022d
mov esi, eax
test esi, esi
js 0x48daf8
mov ecx, edi
call fcn.00426dfb
push dword [ebp + 8]
mov ecx, edi
call fcn.00422f0d
lea ecx, [edi + 0x1c]
call fcn.00426dfb
push dword [ebp - 4]
lea ecx, [edi + 0x1c]
call fcn.00422f0d
cmp dword [edi + 0x34], 8
lea eax, [edi + 0x20]
jb 0x48dadf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp + 0xc]
mov ecx, edi
push 0
push eax
push dword [ebp + 8]
call fcn.0048db09
mov esi, eax
push dword [ebp - 4]
call sub.msvcrt.dll_free
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret 8