joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6693dc
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x821d28], 0
mov dword [esp], 0x769e2c
mov dword [esp + 4], 0x668f11
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x669206
mov dword [esp + 0x10], 0x769e44
mov dword [esp + 0x14], 0x668ed6
jne 0x669520
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x669516
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.006a6198
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.006a61f2
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test esi, esi
je 0x669496
push 0x769e2c
push esi
call ebx
test eax, eax
jne 0x6694da
push esi
call ebp
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.006a6198
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.006a61f2
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x669512
push 0x769e2c
push esi
call ebx
test eax, eax
je 0x66950f
xor edi, edi
mov ebx, edi
push dword [esp + ebx*8 + 0x10]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp + ebx*8 + 0x14], eax
test eax, eax
je 0x66950f
inc ebx
cmp ebx, 3
jl 0x6694de
test esi, esi
je 0x669512
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0x7df12c], eax
add edi, 8
cmp edi, 0x18
jl 0x6694fb
jmp 0x669512
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x821d28], 1
movzx eax, word [esp + 0x230]
mov eax, dword [eax*8 + 0x7df12c]
add esp, 0x22c
ret 4

Function at 0x669700
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
push dword [esp + 0x14]
and dword [ebp], 0
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x66977c
cmp word [esi + 8], 2
jne 0x66975e
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x66975e
mov edi, dword [esi + 0xc]
jmp 0x669758
push dword [eax]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0066965c
mov dword [ebp], eax
test eax, eax
je 0x669777
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x669738
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.006a4144
add esp, 0x10
xor eax, eax
jmp 0x6697a3
push 8
pop eax
jmp 0x6697a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x6697a1
sub eax, 1
je 0x66979a
sub eax, 1
jne 0x6697a1
lea eax, [ecx + 2]
jmp 0x6697a3
mov eax, 0x2afa
jmp 0x6697a3
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
Function at 0x66aa63
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push esi
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 8]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x66aab1
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x66aab1
xor al, al
jmp 0x66aadc
mov eax, dword [esi + 4]
test eax, eax
je 0x66aada
cmp dword [eax + 0xc], 1
je 0x66aada
mov ecx, dword [esi + 0x54]
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0xa4], 0
mov byte [esi + 0xae], 0
mov al, 1
pop esi
leave
ret

Function at 0x66ba6d
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.0066b55d
test al, al
je 0x66ba84
push 0
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
Function at 0x66d188
Capabilities:
Check for unmoving mouse cursor
Hide graphical window

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp byte [esi + 0x79], 0
je 0x66d19d
cmp byte [esi + 0x78], 0
je 0x66d19d
mov byte [esi + 0x78], 0
jmp 0x66d1a8
push 0
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0066aa35
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x66d312
mov eax, dword [0x821d78]
inc eax
and eax, reloc.WS2_32.dll_accept
jns 0x66d1ce
dec eax
or eax, 0xfffffffe
add eax, 1
mov dword [0x821d78], eax
mov eax, ecx
je 0x66d1f2
cmp byte [ecx + 9], 0
jne 0x66d1f2
call fcn.0066a61a
mov ecx, dword [esi + 0x54]
push 0x6ac
call fcn.0066d809
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], 1
je 0x66d312
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x14]
push edi
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call ebx
mov edi, dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x66d251
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x66d30f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 0x3c]
call ebp
mov eax, dword [esi + 0x54]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x66d29d
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 0x3c]
call ebx
test eax, eax
je 0x66d29d
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x66d30f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x14]
call ebp
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0xc]
push eax
call ebx
test eax, eax
je 0x66d2f8
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
je 0x66d2f8
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x66d308
sub eax, 1
mov dword [esi + 0xa4], eax
jne 0x66d308
push 0
mov ecx, esi
call fcn.0066dc53
jmp 0x66d308
push 0
mov ecx, esi
call fcn.0066dc53
and dword [esi + 0xa4], 0
mov ecx, esi
call fcn.0066ae08
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret 4
Function at 0x66dc53
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x66dcbb
cmp dword [eax + 0xc], 1
je 0x66dcbb
push ebx
mov bl, byte [ebp + 8]
cmp byte [esi + 0xae], bl
je 0x66dcba
movzx eax, bl
shl eax, 2
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x54]
push 0
mov byte [esi + 0xae], bl
call fcn.0066da72
pop ebx
pop esi
leave
ret 4
Function at 0x66f412
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileInformationByHandle]
test eax, eax
jne 0x66f434
mov eax, 0x200
jmp 0x66f5e1
mov ecx, dword [esp + 0x10]
mov edx, ecx
and edx, 1
mov eax, edx
test cl, 2
je 0x66f447
or eax, 2
test cl, 4
je 0x66f44f
or eax, 4
push esi
mov esi, ecx
and esi, 0x10
je 0x66f45a
or eax, 0x10
test cl, 0x20
je 0x66f462
or eax, 0x20
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x81000000
or esi, eax
test edx, edx
jne 0x66f47e
or esi, 0x800000
push ebx
push ebp
xor ebp, ebp
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp ebx, 0x28
jbe 0x66f52e
push ebp
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x60]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0
push 0
push 0x24
push edi
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, 0x54ad
cmp word [esp + 0x54], ax
jne 0x66f52e
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x34]
cmp ebx, eax
jbe 0x66f52e
push 0
push 0
push ecx
push edi
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0x18]
cmp eax, 0x5a4d
je 0x66f528
cmp eax, 0x454e
je 0x66f528
cmp eax, 0x454c
je 0x66f528
cmp eax, 0x4550
jne 0x66f52e
or esi, 0x400000
mov eax, dword [esp + 0x58]
test eax, eax
je 0x66f538
mov dword [eax], esi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x66f542
mov dword [eax], ebx
mov esi, dword [esp + 0x60]
test esi, esi
je 0x66f5ac
mov ecx, dword [esp + 0x28]
mov ebp, 0xd53e8000
mov eax, dword [esp + 0x2c]
sub ecx, ebp
push 0
mov ebx, 0x19db1de
mov edi, 0x989680
push edi
sbb eax, ebx
push eax
push ecx
call fcn.0068a080
mov ecx, dword [esp + 0x30]
mov dword [esi], eax
sub ecx, ebp
mov eax, dword [esp + 0x34]
push 0
push edi
sbb eax, ebx
mov dword [esi + 4], edx
push eax
push ecx
call fcn.0068a080
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], eax
sub ecx, ebp
mov eax, dword [esp + 0x24]
push 0
push edi
sbb eax, ebx
mov dword [esi + 0xc], edx
push eax
push ecx
call fcn.0068a080
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x64]
pop ebp
pop ebx
test esi, esi
je 0x66f5de
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.0067071a
movzx ecx, word [esp + 0x4c]
movzx eax, word [esp + 0x50]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
pop esi
pop edi
add esp, 0x40
ret 0x14
Function at 0x66fcde
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x66fced
xor eax, eax
jmp 0x66fdcf
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not ecx
cmp esi, 8
jb 0x66fdae
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x76a520]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x76a520]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x76a520]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x76a520]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x76a520]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x76a520]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x76a520]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x76a520]
sub edi, 1
jne 0x66fd07
pop edi
test esi, esi
je 0x66fdca
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x76a520]
inc edx
sub esi, 1
jne 0x66fdb2
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x6704fb
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
mov ebp, ebx
mov edi, ebx
mov dword [esi + 0x6af80], 2
jmp 0x6706e1
cmp eax, 3
jb 0x670566
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
mov eax, 0x7fff
and ecx, eax
and edx, eax
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebp, ebp
je 0x6705a2
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x6705a2
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x67058d
mov dword [esi + 0x6afa0], eax
push ebp
push esi
call fcn.00671000
mov edi, eax
mov eax, dword [esi + 0x6af90]
cmp edi, eax
jbe 0x6705a2
mov edi, eax
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x67067b
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.00670024
mov ecx, dword [esi + 0x6af90]
sub ecx, edi
mov dword [esp + 0x14], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x670644
cmp ecx, 3
jb 0x670644
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
mov eax, 0x7fff
and ecx, eax
and edx, eax
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x6705e2
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
jmp 0x670675
mov edx, dword [esi + 0x6af84]
add edx, edi
mov edi, ebx
mov dword [esi + 0x6af84], edx
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
mov eax, dword [esp + 0x14]
jmp 0x67069d
movzx eax, byte [ecx + esi + 0x1af70]
push eax
push ebx
push esi
call fcn.00670024
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
test eax, eax
je 0x6706ce
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x6706b5
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x6706b7
mov ecx, ebx
push ebx
sub edx, eax
push edx
push ecx
push esi
call fcn.0067089e
mov eax, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x6706e7
push esi
call fcn.00670775
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x670518
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x670701
lea ebx, [esi + 0x1af70]
add ebx, ecx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push ebx
push esi
call fcn.0067089e
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x670ed9
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
lea eax, [ebx - 1]
push edi
cmp eax, 7
jbe 0x670ef7
mov dword [esi + 0x6afa4], str.bad_pack_level
xor ebp, ebp
xor edi, edi
inc ebp
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x670f1a
mov dword [esi + 0x6af78], ebp
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.0068ccc0
movzx eax, word [ebx*8 + 0x76a4ba]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x76a4b8]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x76a4bc]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x76a4be]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x670f7e
mov eax, dword [esp + 0x1c]
or word [eax], 4
jmp 0x670f8a
cmp ebx, 8
jl 0x670f8a
mov eax, dword [esp + 0x1c]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x670fed
cmp eax, 0xffffffff
je 0x670fed
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x670fc8
push esi
call fcn.00670775
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x670fd0
jmp 0x670ff9
mov dword [esi + 0x6af8c], ebp
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x671dfd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x671e54
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x671e7f
sub esi, eax
cmp esi, dword [ebp + 0xc]
jbe 0x671e29
mov esi, dword [ebp + 0xc]
push esi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0068b600
add esp, 0xc
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.0066fcde
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x671e81
cmp dword [edi + 0x7c], 0
je 0x671e78
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x671e7f
mov esi, dword [ebp - 4]
jmp 0x671e3e
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
leave
ret 8

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

Disassembly:
mov edx, dword [esp + 4]
movsx eax, byte [esp + 8]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x76a520]
movzx eax, cl
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
mov dword [edx], ecx
mov ecx, dword [edx + 8]
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x76a520]
mov dword [edx + 8], ecx
ret 8

Function at 0x672340
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x2d], 0
je 0x6723b4
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x67236e
cmp dword [esi + 0x40], edi
jae 0x67236e
push ecx
call fcn.00689a0e
and dword [esi + 0x3c], 0
pop ecx
jmp 0x672372
test eax, eax
jne 0x672382
lea eax, [edi + edi]
push eax
call fcn.00689cdb
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push eax
call fcn.0068b600
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x6723b1
push ebp
lea ebp, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ebp
call fcn.0067240f
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x672397
pop ebp
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x6723e3
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x6723cf
mov dword [esi + 0x14], 0x30000
jmp 0x672407
push edi
add ecx, edx
push ebx
push ecx
call fcn.0068b600
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x672409
mov eax, dword [esi + 4]
test eax, eax
je 0x672400
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 0x10]
jmp 0x672409
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x673f5a
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
lea eax, [ebp - 0x220]
push esi
xor esi, esi
push esi
push 0x25
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x673f94
mov ecx, esi
movzx eax, word [ecx + 0x76ae3c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x222], ax
test ax, ax
jne 0x673f7d
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004828ef
test al, al
jne 0x673fc3
mov ecx, esi
movzx eax, word [ecx + 0x76ae3c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x222], ax
test ax, ax
jne 0x673fac
mov ecx, 0x105
lea eax, [ebp - 0x42c]
push ecx
push eax
push esi
push esi
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
neg eax
pop esi
sbb eax, eax
and eax, dword [ebp - 4]
leave
ret

Function at 0x6ad512
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006ad1d5

Function at 0x6ad51d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006ad356

Function at 0x6b4b7b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006b44e9

Function at 0x6b4b86
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006b4724
Function at 0x6c2d92
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x6d413d
call fcn.006899cc
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x6c2dc9
call fcn.006c2d43
mov esi, dword [ebp + 8]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0040fd80
mov eax, esi
jmp 0x6c2f92
push edi
push 3
mov eax, esi
mov dword [ebp - 0x18], 0xf
xor edx, edx
xor ebx, ebx
pop edi
div edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
xor edx, edx
mov dword [ebp - 4], ebx
lea eax, [esi + 2]
div edi
mov eax, esi
lea ecx, [ebp - 0x2c]
sub eax, edx
xor edx, edx
add eax, 2
div edi
shl eax, 2
push eax
call fcn.004134e0
mov ecx, dword [ebp - 0x14]
xor edx, edx
sub esi, ecx
mov eax, esi
mov esi, dword [ebp + 0xc]
div edi
mov edi, eax
test edi, edi
je 0x6c2e9c
movzx ecx, byte [esi]
shr ecx, 2
movzx eax, byte [ecx + 0x77a150]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00413680
mov cl, byte [esi]
mov al, byte [esi + 1]
and cl, 3
shr al, 4
shl cl, 4
add cl, al
movzx eax, cl
lea ecx, [ebp - 0x2c]
movzx eax, byte [eax + 0x77a150]
push eax
call fcn.00413680
mov cl, byte [esi + 1]
mov al, byte [esi + 2]
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
movzx eax, cl
lea ecx, [ebp - 0x2c]
movzx eax, byte [eax + 0x77a150]
push eax
call fcn.00413680
movzx eax, byte [esi + 2]
lea ecx, [ebp - 0x2c]
and eax, 0x3f
movzx eax, byte [eax + 0x77a150]
push eax
call fcn.00413680
add esi, 3
sub edi, 1
jne 0x6c2e1d
mov ecx, dword [ebp - 0x14]
pop edi
test ecx, ecx
je 0x6c2f4e
mov byte [ebp - 0x10], bl
mov al, bl
mov byte [ebp + 0xf], al
mov byte [ebp - 0xf], al
mov byte [ebp + 0x13], al
mov byte [ebp - 0xe], al
test cl, cl
je 0x6c2eda
movzx eax, cl
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0068b600
mov al, byte [ebp - 0xe]
add esp, 0xc
mov bl, byte [ebp - 0x10]
mov byte [ebp + 0x13], al
mov al, byte [ebp - 0xf]
mov byte [ebp + 0xf], al
movzx eax, bl
lea ecx, [ebp - 0x2c]
shr eax, 2
movzx eax, byte [eax + 0x77a150]
push eax
call fcn.00413680
mov al, byte [ebp + 0xf]
lea ecx, [ebp - 0x2c]
and bl, 3
shr al, 4
shl bl, 4
add bl, al
movzx eax, bl
movzx eax, byte [eax + 0x77a150]
push eax
call fcn.00413680
cmp dword [ebp - 0x14], 2
jne 0x6c2f35
mov al, byte [ebp + 0xf]
mov cl, byte [ebp + 0x13]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
movzx eax, al
mov al, byte [eax + 0x77a150]
mov byte [ebp + 0xc], al
jmp 0x6c2f39
mov byte [ebp + 0xc], 0x3d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00413680
push 0x3d
lea ecx, [ebp - 0x2c]
call fcn.00413680
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fb20
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x6c2f8f
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
cmp eax, 0x1000
jb 0x6c2f86
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc