joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427dec
Capabilities:
Create process on windows
Set current directory

Disassembly:
mov eax, 0x45ed6a
call fcn.0044b154
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
imul eax, eax, 0x1c
push ebx
push esi
push edi
lea edi, [eax + ecx]
lea esi, [edi + 0x88]
call fcn.004014d1
lea esi, [edi + 0xdc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call fcn.004014d1
mov edi, eax
movzx eax, byte [ebp + 0x10]
push edi
push dword [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 0xc]
push str.fs::RunApp_3017
push str._s__app_d_must_d_u_k_d__d_
push ebx
call fcn.0043a6e3
add esp, 0x1c
cmp edi, ebx
jle 0x427f9d
cmp dword [ebp - 0x10], ebx
jle 0x427e5d
cmp byte [ebp + 0x10], bl
je 0x427f9d
mov eax, dword [ebp + 0xc]
sub eax, ebx
je 0x427f6b
dec eax
je 0x427ef4
dec eax
jne 0x427f8e
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00418c41
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 2
call fcn.00425ac2
xor edi, edi
inc edi
test al, al
pop ecx
je 0x427ee5
cmp dword [ebp - 0x1c], ebx
je 0x427ee5
lea eax, [ebp - 0x4c]
push eax
call fcn.0041ee8b
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x427eb8
mov eax, dword [eax + 4]
jmp 0x427ebb
add eax, 4
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x427ec7
lea ecx, [ebp - 0x2c]
push edi
push eax
push str.__restore_last_session
push ecx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.004192fd
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.004192fd
jmp 0x427f8e
lea eax, [ebp - 0x68]
push eax
call fcn.0041ee8b
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x427f09
mov eax, dword [eax + 4]
jmp 0x427f0c
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x68]
call fcn.004192fd
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00418c41
push ebx
lea eax, [ebp - 0x30]
push ebx
push eax
mov dword [ebp - 4], edi
call fcn.00425b7d
add esp, 0xc
test al, al
je 0x427ee5
cmp dword [ebp - 0x1c], ebx
je 0x427ee5
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x427f56
lea eax, [ebp - 0x2c]
push edi
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x427ee5
mov esi, dword [ebp + 8]
lea edi, [esi + 0xdc]
push edi
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push esi
mov dword [ebp - 4], ebx
call fcn.004282d5
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00413961
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4283b8
Capabilities:
Initialize iwebbrowser2

Disassembly:
mov eax, 0x45cca5
call fcn.0044b154
sub esp, 0x40
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
push edi
jb 0x4283d4
mov eax, dword [esi + 4]
jmp 0x4283d7
lea eax, [esi + 4]
push eax
push str.fs::OpenLinkInNewIE_3176
push str._s__url_s_
xor edi, edi
push edi
call fcn.0043a6e3
add esp, 0x10
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push eax
push 0x463dfc
push 4
push edi
push 0x463dbc
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 0x10], edi
jne 0x428437
push eax
push str.__cant_run_IE__hr0x_08x
push 1
call fcn.0043a6e3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp eax, edi
je 0x428430
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x4284c9
mov word [ebp - 0x20], di
push 0xfde9
lea eax, [ebp - 0x4c]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00446a00
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x42845c
mov eax, dword [eax + 4]
jmp 0x42845f
add eax, 4
push eax
lea eax, [ebp - 0x30]
mov word [ebp - 0x30], di
call fcn.0041a0a8
lea edx, [ebp - 0x20]
push edx
push edx
push edx
push edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push eax
call dword [ecx + 0xd0]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x30]
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00414ab3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
lea eax, [ebp - 0x20]
push eax
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x4284c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x428941
Capabilities:
Check if file exists
Gather firefox profile information
Reference sql statements

Disassembly:
mov eax, 0x45ecfd
call fcn.0044b154
sub esp, 0x78
push ebx
push esi
push edi
xor ebx, ebx
push str.__test_FF_cookies
push ebx
mov dword [ebp - 0x14], ebx
call fcn.0043a6e3
pop ecx
pop ecx
push str._FFProfile_
lea ecx, [ebp - 0x4c]
call fcn.00419fe3
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], ebx
call fcn.0041f693
pop ecx
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.004192fd
cmp dword [ebp - 0x1c], ebx
mov edi, str.cookies.sqlite
je 0x4289cd
push edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0041691c
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x14], esi
jb 0x4289bc
mov eax, dword [eax + 4]
jmp 0x4289bf
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [ebp - 0xd], bl
jne 0x4289d1
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x4289e1
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.004192fd
cmp byte [ebp - 0xd], bl
je 0x4289f5
mov ecx, dword [ebp + 8]
push 0x468d4a
call fcn.00419fe3
jmp 0x428a45
push str.SELECT_name__value_FROM_moz_cookies_WHERE_host_host_
lea ecx, [ebp - 0x68]
call fcn.00419fe3
push edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 3
call fcn.0041691c
push dword [ebp + 0xc]
lea ecx, [ebp - 0x68]
push ecx
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00428b5f
add esp, 0x1c
push ebx
push esi
lea ecx, [ebp - 0x84]
call fcn.004192fd
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.004192fd
push ebx
lea ecx, [ebp - 0x30]
push esi
call fcn.004192fd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x428a61
Capabilities:
Check if file exists
Reference sql statements

Disassembly:
mov eax, 0x45ecd0
call fcn.0044b154
sub esp, 0x74
push ebx
push esi
push edi
xor esi, esi
push str.__test_GC_cookies
push esi
mov dword [ebp - 0x10], esi
call fcn.0043a6e3
pop ecx
pop ecx
mov edi, 0x468d4a
push edi
lea ecx, [ebp - 0x64]
call fcn.00419fe3
push esi
lea eax, [ebp - 0x64]
push eax
push 0x1c
lea eax, [ebp - 0x48]
push 0x4703b8
push eax
mov dword [ebp - 4], esi
call fcn.0041eff2
add esp, 0x14
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004192fd
cmp dword [ebp - 0x34], esi
jne 0x428acd
mov ecx, dword [ebp + 8]
push edi
call fcn.00419fe3
jmp 0x428b43
push str.GoogleChromeUser_DataDefaultCookies
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041691c
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x428af2
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x428b08
mov ecx, dword [ebp + 8]
push edi
call fcn.00419fe3
jmp 0x428b39
push str.SELECT_name__value_FROM_cookies_WHERE_host_key_host_
lea ecx, [ebp - 0x80]
call fcn.00419fe3
push dword [ebp + 0xc]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00428b5f
add esp, 0x10
push esi
push ebx
lea ecx, [ebp - 0x80]
call fcn.004192fd
push esi
lea ecx, [ebp - 0x2c]
push ebx
call fcn.004192fd
push esi
lea ecx, [ebp - 0x48]
push ebx
call fcn.004192fd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42c6eb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
push ebx
push edi
mov edi, 0x1e8
push edi
xor ebx, ebx
lea eax, [ebp - 0x1ec]
push ebx
push eax
call fcn.00448970
mov eax, dword [esi + 4]
add esp, 0xc
push 0x6b
push dword [0x483fb0]
mov dword [ebp - 0x1ec], edi
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e4], 1
mov dword [ebp - 0x1e0], 7
mov dword [ebp - 0x1dc], 0x8004
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x1d8], eax
push 0x80
lea eax, [ebp - 0x1d4]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x1ec]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
cmp dword [ebp + 8], ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], eax
je 0x42c787
push 6
push dword [esi + 4]
call edi
cmp dword [ebp - 4], ebx
je 0x42c792
push ebx
push dword [esi + 4]
call edi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 4

Function at 0x42d6ce
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
pop edi
je 0x42d710
cmp dword [ebp - 0x18], 5
jae 0x42d70c
cmp dword [ebp - 0x18], 4
jne 0x42d710
cmp dword [ebp - 0x14], 0x5a
jb 0x42d710
xor eax, eax
jmp 0x42d713
xor eax, eax
inc eax
add ebp, 0x78
leave
ret
Function at 0x42fbe7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindResourceA]
push 0xe
push eax
push dword [0x483fb0]
call edi
test eax, eax
je 0x42fc13
push eax
push dword [0x483fb0]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x42fc17
xor eax, eax
jmp 0x42fc4f
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
call ebx
test eax, eax
je 0x42fc4e
movzx ecx, word [eax + 4]
xor edx, edx
test ecx, ecx
push esi
jle 0x42fc4b
lea esi, [eax + 6]
movzx eax, byte [esi]
cmp eax, dword [esp + 0x14]
jne 0x42fc43
cmp word [esi + 6], 0x20
je 0x42fc53
inc edx
add esi, 0xe
cmp edx, ecx
jl 0x42fc33
xor eax, eax
pop esi
pop ebx
pop edi
ret 8
movzx eax, word [esi + 0xc]
push 3
push eax
push dword [0x483fb0]
call edi
test eax, eax
je 0x42fc4b
push eax
push dword [0x483fb0]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x42fc4b
push eax
call ebx
test eax, eax
je 0x42fc4b
push 0
push dword [esp + 0x18]
push dword [esp + 0x1c]
push 0x30000
push 1
push dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov esi, eax
push esi
push str.__found_32bpp_icon_0x_p
push 0
call fcn.0043a6e3
add esp, 0xc
mov eax, esi
jmp 0x42fc4d
Function at 0x42fffe
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push dword [ebx + 4]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebx + 0x48], edi
je 0x430070
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebx + 0x48]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push 0xcc0020
push edi
push edi
push esi
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp esi, edi
je 0x430144
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x430144
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x430144
mov eax, dword [ebp + 8]
push 0x1000000
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_FillRect]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], 0x578
mov dword [ebp - 0x10], 0x4394
mov dword [ebp - 8], 0x23f0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, ecx
cdq
push 0x64
pop ecx
idiv ecx
mov dword [ebp - 4], 0xffffff
lea esi, [ebp - 0x18]
mov byte [ebp - 4], al
movzx eax, byte [ebp - 3]
imul eax, edi
add eax, dword [ebp - 0x10]
cdq
idiv ecx
mov byte [ebp - 3], al
movzx eax, byte [ebp - 2]
imul eax, edi
add eax, dword [ebp - 0x14]
cdq
idiv ecx
mov edx, edi
mov ecx, edi
mov byte [ebp - 2], al
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push dword [ebp - 4]
push eax
xor eax, eax
call fcn.00430552
sub dword [ebp - 8], 0x5c
add dword [ebp - 0xc], 0xff
sub dword [ebp - 0x10], 0xad
sub dword [ebp - 0x14], 0xe
inc edi
cmp dword [ebp - 8], 0
jg 0x4300af
push 0xead5c
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FrameRect]
test esi, esi
je 0x430142
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
mov edx, dword [ebx + 0x4c]
cmp edx, edi
je 0x430179
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
push 3
push edi
push edi
push eax
push ecx
push edx
cdq
sub eax, edx
push 0x3c
pop edx
sar eax, 1
sub edx, eax
push edx
mov eax, ecx
cdq
push 0x3c
sub eax, edx
pop ecx
sar eax, 1
sub ecx, eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawIconEx]
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x58]
push eax
mov ecx, ebx
call fcn.0043018d
pop edi
pop esi
leave
ret 4
Function at 0x4310fa
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x45b8c3
call fcn.0044b154
sub esp, 0x28
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
lea ecx, [ebp - 0x34]
mov edi, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0xf
call fcn.00418c41
cmp ebx, esi
mov dword [ebp - 4], esi
je 0x431254
mov dword [ebp - 0x18], ebx
mov al, byte [edi]
mov byte [ebp + esi - 0x10], al
mov bl, byte [ebp - 0xf]
inc esi
inc edi
cmp esi, 3
jne 0x4311a7
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
cmp dword [0x484788], 0x10
mov eax, dword [0x484774]
jae 0x43118b
mov eax, 0x484774
movzx ecx, byte [ebp + esi - 0x14]
movsx eax, byte [ecx + eax]
push eax
push 1
lea ecx, [ebp - 0x34]
call fcn.0043146b
inc esi
cmp esi, 4
jl 0x431178
xor esi, esi
dec dword [ebp - 0x18]
jne 0x431131
test esi, esi
je 0x431254
cmp esi, 3
jge 0x4311d5
push 3
pop ecx
sub ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [ebp + esi - 0x10]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov bl, byte [ebp - 0xf]
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea edi, [esi + 1]
xor ebx, ebx
test edi, edi
mov byte [ebp - 0x11], al
jle 0x43123c
cmp dword [0x484788], 0x10
mov eax, dword [0x484774]
jae 0x431223
mov eax, 0x484774
movzx ecx, byte [ebp + ebx - 0x14]
movsx eax, byte [ecx + eax]
push eax
push 1
lea ecx, [ebp - 0x34]
call fcn.0043146b
inc ebx
cmp ebx, edi
jl 0x431210
push 3
pop edi
cmp esi, edi
jge 0x431254
sub edi, esi
push 0x3d
push 1
lea ecx, [ebp - 0x34]
call fcn.0043146b
dec edi
jne 0x431245
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.0041a15f
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004192fd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x438d18
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 0x45be06
call fcn.0044b154
sub esp, 0x74
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
push edi
mov dword [esi + 0xc], eax
jae 0x438d72
push str.Incorrect_key_length
lea ecx, [ebp - 0x48]
call fcn.00419fe3
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041a005
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041a041
push 0x38
pop eax
cmp dword [ebp + 0xc], eax
jbe 0x438d7d
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x80]
push dword [ebp + 8]
push eax
call fcn.00448430
push 0x48
lea edi, [esi + 0x10]
push 0x470728
push edi
call fcn.00448430
push 0x1000
lea eax, [esi + 0x58]
push 0x470770
push eax
call fcn.00448430
add esp, 0x24
and dword [ebp + 0x10], 0
push 4
lea eax, [ebp - 0x80]
mov ecx, edi
mov dword [ebp - 0x14], 0x12
pop ebx
and dword [ebp + 8], 0
mov dword [ebp - 0x10], ebx
mov edx, dword [ebp + 8]
movzx ebx, byte [eax]
shl edx, 8
or edx, ebx
inc eax
inc dword [ebp + 0x10]
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x438ded
and dword [ebp + 0x10], 0
lea eax, [ebp - 0x80]
dec dword [ebp - 0x10]
jne 0x438dcc
mov edx, dword [ebp + 8]
xor dword [ecx], edx
push 4
pop ebx
add ecx, ebx
dec dword [ebp - 0x14]
jne 0x438dc5
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00438e84
mov eax, dword [ebp - 0x18]
inc dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
add edi, ebx
inc dword [ebp + 0xc]
mov dword [edi], eax
add edi, ebx
cmp dword [ebp + 0xc], 0x12
jb 0x438e0c
lea eax, [esi + 0x58]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ebx
and dword [ebp + 0xc], 0
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.00438e84
mov eax, dword [ebp - 0x18]
inc dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
add edi, ebx
inc dword [ebp + 0xc]
mov dword [edi], eax
add edi, ebx
cmp dword [ebp + 0xc], 0x100
jl 0x438e3f
add dword [ebp + 0x10], 0x400
dec dword [ebp + 8]
jne 0x438e38
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x439117
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x45bdec
call fcn.0044b154
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, ecx
mov esi, edx
je 0x439233
test al, 7
jne 0x439233
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jne 0x4391a8
cmp eax, 8
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 8]
mov dword [ebp - 0x18], ecx
jb 0x439197
shr eax, 3
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
mov ecx, edi
call fcn.0043908e
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x10], eax
xor dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00438e84
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
add edi, 8
mov eax, edi
lea ecx, [ebp - 0x14]
call fcn.004390e2
dec dword [ebp + 0xc]
jne 0x439160
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
cmp dword [ebp + 0xc], 2
jne 0x439201
cmp eax, 8
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x18], ecx
jb 0x439197
shr eax, 3
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00438e84
lea eax, [ebp - 0x14]
mov ecx, edi
call fcn.0043908e
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
add edi, 8
mov eax, edi
lea ecx, [ebp - 0x14]
call fcn.004390e2
dec ebx
jne 0x4391c4
jmp 0x439197
cmp eax, 8
jb 0x439197
shr eax, 3
mov ebx, eax
lea eax, [ebp - 0x14]
mov ecx, edi
call fcn.0043908e
lea eax, [ebp - 0x14]
push eax
call fcn.00438e84
add edi, 8
mov eax, edi
lea ecx, [ebp - 0x14]
call fcn.004390e2
dec ebx
jne 0x43920b
jmp 0x439197
push str.Incorrect_buffer_length
lea ecx, [ebp - 0x4c]
call fcn.00419fe3
lea eax, [ebp - 0x4c]
push eax
push 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.0041a005
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041a041
int3
Function at 0x43925d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x45bdd2
call fcn.0044b154
sub esp, 0x48
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, ecx
mov esi, edx
je 0x43938f
test al, 7
jne 0x43938f
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jne 0x4392fd
cmp eax, 8
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x18], ecx
jb 0x4392ec
shr eax, 3
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
mov ecx, edi
call fcn.0043908e
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00438f89
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
add edi, 8
mov eax, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
call fcn.004390e2
dec dword [ebp + 0xc]
jne 0x4392a9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
cmp dword [ebp + 0xc], 2
jne 0x43935d
cmp eax, 8
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x18], ecx
jb 0x4392ec
shr eax, 3
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
mov ecx, edi
call fcn.0043908e
lea eax, [ebp - 0x1c]
push eax
call fcn.00438e84
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, eax
xor eax, dword [ebp - 0x1c]
mov ebx, ecx
xor ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
add edi, 8
mov eax, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ebx
call fcn.004390e2
dec dword [ebp + 0xc]
jne 0x43931a
jmp 0x4392ec
cmp eax, 8
jb 0x4392ec
shr eax, 3
mov ebx, eax
lea eax, [ebp - 0x14]
mov ecx, edi
call fcn.0043908e
lea eax, [ebp - 0x14]
push eax
call fcn.00438f89
add edi, 8
mov eax, edi
lea ecx, [ebp - 0x14]
call fcn.004390e2
dec ebx
jne 0x439367
jmp 0x4392ec
push str.Incorrect_buffer_length
lea ecx, [ebp - 0x54]
call fcn.00419fe3
lea eax, [ebp - 0x54]
push eax
push 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.0041a005
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041a041
int3