joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4badb0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push esi
xor ebx, ebx
push 0x4ba9e0
mov dword [esi + 0x1210], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, esi
call fcn.004baa20
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call edi
push 1
call edi
mov ecx, dword [esi + 0x154]
mov edx, dword [esi + 0x158]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x15c]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x160]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [esi + 0x1230], ebx
mov dword [esi + 0x122c], ebx
mov dword [esi + 0x121c], ebx
mov dword [esi + 0x1220], ebx
mov dword [esi + 0x1224], ebx
mov dword [esi + 0x1228], ebx
mov dword [esi + 0x1234], ebx
mov byte [esi + 0x1238], bl
mov dword [esi + 0x123c], ebx
mov dword [eax + 0xc], edx
call fcn.004bab20
pop edi
pop esi
pop ebx
ret

Function at 0x4bb590
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x207
lea eax, [ebp - 0x20b]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x20c], 0
call fcn.005de050
mov ecx, dword [esi]
push ecx
push 0x64d5ec
lea edx, [ebp - 0x20c]
push 0x208
push edx
call fcn.005de363
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
cmp eax, 0x17
jne 0x4bb62b
lea ecx, [edi + 0x1068]
push ecx
add esi, 0xc
push esi
mov ecx, edi
call fcn.004ba290
movzx edx, ax
push edx
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xd
jne 0x4bb63a
push esi
mov ecx, edi
call fcn.004ba580
jmp 0x4bb68a
cmp eax, 0xe
jne 0x4bb649
push esi
mov ecx, edi
call fcn.004baee0
jmp 0x4bb68a
cmp eax, 9
jne 0x4bb658
push esi
mov ecx, edi
call fcn.004ba620
jmp 0x4bb68a
cmp eax, 0xf
jne 0x4bb66f
mov eax, dword [edi + 0x107c]
push 0
push 0
push 0x40f
push eax
jmp 0x4bb684
cmp eax, 0x10
jne 0x4bb68a
mov ecx, dword [edi + 0x107c]
push 0
push 0
push 0x411
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov ecx, edi
call dword [sym.imp.DuiLib.dll_public_virtual:_void___thiscall_DuiLib::CControlUI::DoEvent_struct_DuiLib::tagTEventUI__]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 4
Function at 0x4bc730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea esi, [ecx + 0x34]
push esi
call fcn.004073c0
add esp, 4
test al, al
je 0x4bc7fd
cmp byte [ebp + 8], 0
je 0x4bc7fd
push 0x31
xor eax, eax
push str.__restore_last_session___no_default_browser_check
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
call fcn.00403600
push 0x38
lea ecx, [ebp - 0x58]
push 0
push ecx
call fcn.005de050
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x50], str.open
jb 0x4bc7ad
mov edx, dword [esi]
mov dword [ebp - 0x4c], edx
jmp 0x4bc7b0
mov dword [ebp - 0x4c], esi
cmp dword [ebp - 0x10], 0
jne 0x4bc7bf
mov dword [ebp - 0x48], 0
jmp 0x4bc7d3
cmp dword [ebp - 0xc], 8
jb 0x4bc7cd
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
jmp 0x4bc7d3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 3
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0xc], 8
jb 0x4bc7fd
mov eax, dword [ebp - 0x20]
push eax
call fcn.004effaf
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 4
Function at 0x4bdaa0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6353fb
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x6c3afc]
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 eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov ebx, 7
xor ecx, ecx
mov dword [ebp - 0x654], esi
mov dword [ebp - 0x650], eax
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x63c], edi
mov word [ebp - 0x64c], cx
xor edx, edx
mov dword [ebp - 4], edi
mov word [ebp - 0x220], dx
cmp eax, edi
je 0x4bdc38
lea eax, [ebp - 0x220]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4bdc38
mov ecx, dword [0x64d6fc]
mov dx, word [0x64d700]
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
lea ebx, [ebp - 0x220]
jmp 0x4bdb50
mov ax, word [ebx]
push 0x104
lea ecx, [ebp - 0x630]
push ecx
lea edx, [ebp - 0x18]
push edx
mov word [ebp - 0x18], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4bdc10
lea eax, [ebp - 0x630]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bdb80
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jae 0x4bdc06
mov ecx, dword [ebp - 0x650]
push esi
lea eax, [ebp - 0x630]
push eax
push ecx
call fcn.005dece1
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
inc edi
je 0x4bdc06
mov edx, dword [ebp - 0x650]
lea eax, [edx + esi*2]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x428]
push 0x64d6f0
push edx
call fcn.00412ff0
lea eax, [ebp - 0x428]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bdbe4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x64c]
call fcn.00403600
mov esi, dword [ebp - 0x654]
lea esp, [esp]
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x4bdc10
test edi, edi
jne 0x4bdc28
cmp word [ebx], di
jne 0x4bdb50
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
jmp 0x4bdc3e
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
lea eax, [ebp - 0x64c]
xor edx, edx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402260
cmp dword [ebp - 0x638], 8
jb 0x4bdc69
mov ecx, dword [ebp - 0x64c]
push ecx
call fcn.004effaf
add esp, 4
mov eax, esi
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.005dd8e2
mov esp, ebp
pop ebp
ret
Function at 0x4bdc90
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635451
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x6c3afc]
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 esi, dword [ebp + 8]
xor edi, edi
push edi
mov ebx, ecx
xor eax, eax
push 0x688638
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x680], edi
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], edi
mov word [ebp - 0x644], ax
call fcn.00403600
mov eax, dword [ebx + 0x30]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x4bdd35
xor ecx, ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
lea edx, [ebp - 0x644]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00402260
cmp dword [ebp - 0x630], 8
jb 0x4bdec9
mov eax, dword [ebp - 0x644]
push eax
jmp 0x4bdec1
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
xor ecx, ecx
cmp ebx, edi
je 0x4bdd01
push edi
mov word [ebp - 0x660], cx
push 0x688638
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x64c], 7
mov dword [ebp - 0x650], edi
call fcn.00403600
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push edi
push eax
mov byte [ebp - 4], 1
mov word [ebp - 0x218], dx
call fcn.005de050
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edi
push ebx
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x4bddd6
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4bddb4
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x660]
call fcn.00403600
cmp dword [ebp - 0x650], edi
jne 0x4bde51
push 0x40e
lea ecx, [ebp - 0x626]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x628], ax
call fcn.005de050
add esp, 0xc
push 0x208
lea edx, [ebp - 0x628]
push edx
push ebx
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
je 0x4bde66
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x67c]
call fcn.004bdaa0
add esp, 4
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x67c]
push ecx
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 2
call fcn.00403240
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], 1
call fcn.004bf3b0
jmp 0x4bde66
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x660]
push edx
lea ecx, [ebp - 0x644]
call fcn.00403240
lea ecx, [ebp - 0x644]
mov ebx, 7
xor eax, eax
push ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov ecx, esi
mov word [esi], ax
call fcn.00402260
cmp dword [ebp - 0x64c], 8
jb 0x4bde9c
mov edx, dword [ebp - 0x660]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
cmp dword [ebp - 0x630], 8
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 0x650], edi
mov word [ebp - 0x660], ax
jb 0x4bdec9
mov ecx, dword [ebp - 0x644]
push ecx
call fcn.004effaf
add esp, 4
mov eax, esi
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.005dd8e2
mov esp, ebp
pop ebp
ret 4
Function at 0x4bea50
Capabilities:
Connect to http server
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 0
push str.RookIE_1.0
mov dword [ebp - 0x414], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
push 0
push 3
push 0
push 0
push 0x50
mov esi, eax
push 0x688638
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
test esi, esi
je 0x4beace
cmp dword [edi + 0x14], 8
jb 0x4beaaf
mov edi, dword [edi]
push 0
push 0x80000800
push 0
push 0
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x4beae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
push ecx
push 0x20000005
mov edi, 8
push esi
mov dword [ebp - 0x410], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov byte [ebp - 0x405], 1
mov dword [ebp - 0x40c], 1
cmp dword [ebx + 0x14], edi
jb 0x4beb22
mov ebx, dword [ebx]
push 0x64d70c
push ebx
call fcn.005df0ef
mov edi, eax
add esp, 8
test edi, edi
je 0x4beb93
cmp dword [ebp - 0x40c], 0
jbe 0x4beb88
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4beb50
lea edx, [ebp - 0x40c]
push edx
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push esi
call ebx
mov ecx, dword [ebp - 0x40c]
push edi
push ecx
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.005defb7
add esp, 0x10
cmp dword [ebp - 0x40c], 0
ja 0x4beb50
push edi
call fcn.005dedec
add esp, 4
jmp 0x4beb9a
mov byte [ebp - 0x405], 0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x405]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 8
Function at 0x4c7600
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4c760e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x4c76ed
mov esi, edx
shr esi, 3
push edi
jmp 0x4c7630
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x64ee60]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x64ee60]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x64ee60]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x64ee60]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x64ee60]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x64ee60]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x64ee60]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x64ee60]
add ecx, 8
sub edx, 8
dec esi
jne 0x4c7630
pop edi
test edx, edx
je 0x4c770a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x64ee60]
inc ecx
dec edx
jne 0x4c76f1
not eax
pop esi
pop ebp
ret

Function at 0x4c7710
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x64ee60]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x64ee60]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x4c7760
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x64ee60]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x64ee60]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x4c7bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x4c7c00
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c7bf4
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x4c7c11
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.005dd900
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x4c7de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x4c7e2b
cmp byte [esi + 1], 0
je 0x4c7e33
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x4c7e47
cmp byte [esi + 1], 0
je 0x4c7e3b
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp + 8], ebx
jmp 0x4c7e4f
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4c7e05
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 0
mov ebx, dword [ebp + 8]
jmp 0x4c7e4f
mov eax, dword [esi + 0x1c]
mov dword [ebp + 8], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 4], edi
cmp ebx, edi
jae 0x4c7e61
mov dword [ebp - 4], ebx
mov edi, ebx
push 0x404
call fcn.005df877
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4c7e7f
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0xffffffff
cmp edi, eax
jbe 0x4c7f8d
jmp 0x4c7e9e
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
add eax, 0x400
mov dword [ebp - 8], edi
cmp eax, edi
ja 0x4c7ead
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, dword [ebp - 8]
sub ebx, eax
mov dword [ebp - 0x18], eax
cmp ebx, 0x404
jbe 0x4c7ec4
mov ebx, 0x404
cmp byte [esi], 0
je 0x4c7ee9
cmp byte [esi + 1], 0
je 0x4c7f8d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4c7eec
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x4c7f15
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c7f10
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x4c7f3e
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x4c7f26
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0xc]
push edi
add ecx, eax
push ecx
push edx
call fcn.005dd900
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x4c7f8d
lea eax, [ebx - 3]
test eax, eax
js 0x4c7f7b
mov edi, edi
mov ecx, dword [ebp - 0xc]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x4c7f6f
cmp byte [eax + ecx + 1], 0x4b
jne 0x4c7f6f
cmp byte [eax + ecx + 2], 5
jne 0x4c7f6f
cmp byte [eax + ecx + 3], 6
je 0x4c7f75
test eax, eax
jns 0x4c7f50
jmp 0x4c7f7b
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4c7f8d
mov edx, dword [ebp - 4]
cmp dword [ebp - 8], edx
jb 0x4c7e95
mov eax, dword [ebp - 0xc]
push eax
call fcn.005df83d
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c8d90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4c8dc4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c8dc4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4c8eae
mov ecx, ebx
mov edx, ebx
cmp ax, 0x2f
je 0x4c8de0
cmp ax, 0x5c
jne 0x4c8de2
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x4c8dd4
push edi
cmp ecx, ebx
je 0x4c8e22
sub ecx, ebx
sar ecx, 1
lea edi, [ecx + ecx]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.005dd900
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.004c8d90
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x4c8e4f
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4c8e40
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c8e53
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4c8e70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x4c8eae
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret

Function at 0x4ca8f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x4ca9c2
cmp dword [ebx + 4], 0xffffffff
jne 0x4ca9c2
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ca921
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x4ca958
cmp eax, 0x2f
je 0x4ca958
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ca945
mov eax, dword [0x688728]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
cmp edi, 1
jne 0x4ca982
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4ca982
pop esi
pop edi
mov eax, 0x2000000
pop ebx
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edi
push edx
push esi
call fcn.004c7ab0
add esp, 0x10
test eax, eax
jne 0x4ca9a2
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push eax
call fcn.004ca310
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
pop ebp
ret 0xc
Function at 0x4caf30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 0x13]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], ebx
jle 0x4cb08c
push edi
mov edi, dword [ebp + 0xc]
lea ebx, [ebx]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea edx, [edx + edx*2]
mov eax, ebx
sub eax, edx
sub eax, 0
je 0x4cb04e
dec eax
je 0x4caff0
dec eax
jne 0x4cb081
mov al, byte [edi]
shr al, 6
or al, cl
and al, 0x3f
cmp al, 0x1a
jae 0x4caf88
add al, 0x41
jmp 0x4cafa2
cmp al, 0x34
jae 0x4caf90
add al, 0x47
jmp 0x4cafa2
cmp al, 0x3e
jae 0x4caf98
sub al, 4
jmp 0x4cafa2
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
mov al, byte [edi]
and al, 0x3f
cmp al, 0x1a
jae 0x4cafb9
add al, 0x41
mov byte [esi + 1], al
add esi, 2
jmp 0x4cb080
cmp al, 0x34
jae 0x4cafca
add al, 0x47
mov byte [esi + 1], al
add esi, 2
jmp 0x4cb080
cmp al, 0x3e
jae 0x4cafdb
sub al, 4
mov byte [esi + 1], al
add esi, 2
jmp 0x4cb080
setne al
add esi, 2
lea eax, [eax*4 + 0x2b]
mov byte [esi - 1], al
jmp 0x4cb080
mov al, byte [edi]
shr al, 4
or al, cl
and al, 0x3f
cmp al, 0x1a
jae 0x4cb00d
add al, 0x41
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
add cl, cl
inc esi
add cl, cl
jmp 0x4cb080
cmp al, 0x34
jae 0x4cb021
add al, 0x47
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
add cl, cl
inc esi
add cl, cl
jmp 0x4cb080
cmp al, 0x3e
jae 0x4cb035
sub al, 4
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
add cl, cl
inc esi
add cl, cl
jmp 0x4cb080
setne al
inc esi
lea eax, [eax*4 + 0x2b]
mov byte [esi - 1], al
mov cl, byte [edi]
and cl, 0xf
add cl, cl
add cl, cl
jmp 0x4cb080
mov al, byte [edi]
shr al, 2
cmp al, 0x1a
jae 0x4cb05b
add al, 0x41
jmp 0x4cb075
cmp al, 0x34
jae 0x4cb063
add al, 0x47
jmp 0x4cb075
cmp al, 0x3e
jae 0x4cb06b
sub al, 4
jmp 0x4cb075
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
mov cl, byte [edi]
and cl, 3
inc esi
shl cl, 4
inc edi
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x4caf50
pop edi
mov eax, 0x55555556
imul dword [ebp + 0x10]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x10]
sub eax, edx
je 0x4cb0e0
and cl, 0x3f
cmp cl, 0x1a
jae 0x4cb0b2
add cl, 0x41
jmp 0x4cb0d0
cmp cl, 0x34
jae 0x4cb0bc
add cl, 0x47
jmp 0x4cb0d0
cmp cl, 0x3e
jae 0x4cb0c6
sub cl, 4
jmp 0x4cb0d0
setne cl
lea ecx, [ecx*4 + 0x2b]
mov byte [esi], cl
inc esi
cmp eax, 1
jne 0x4cb0dc
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0x3d
inc esi
mov eax, esi
sub eax, dword [ebp + 8]
mov byte [esi], 0
pop esi
pop ebx
pop ebp
ret