joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc16d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc16d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xc16d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc16d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xc16d94
push eax
push esi
call fcn.00c1920b
add esp, 8
pop esi
ret 0x10

Function at 0xc16da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc16e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xc16e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xc2f320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c18dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xc16dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xc16e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc16ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xc16eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xc2f320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c18dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xc16eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xc16e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xc17000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xc17131
push esi
call fcn.00c1a145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00c09080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xc17131
push 0
push ebp
call fcn.00c093a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00c09260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xc1708b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00c092f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xc17121
push 0xc2f918
push edi
call fcn.00c183f0
push eax
push ebx
push esi
call fcn.00c16f60
push 0xc2f8f8
push edi
call fcn.00c183f0
push eax
push ebx
push esi
call fcn.00c16f60
push 0xc2f8d8
push edi
call fcn.00c183f0
push eax
push ebx
push esi
call fcn.00c16f60
push 0xc2f8c0
push edi
call fcn.00c183f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00c16f60
push 0xc2f8a0
push edi
call fcn.00c183f0
push eax
push ebx
push esi
call fcn.00c16f60
push 0xc2f888
push edi
call fcn.00c183f0
push eax
push ebx
push esi
call fcn.00c16f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xc181b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00c18140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00c18140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00c18140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00c18140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xc18bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xc18c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xc2a87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xc18c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xc18c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff830
push ebx
push edi
push esi
lea eax, [ebp - 0x3e8]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_GetCurrentDirectoryA
push str.Pic_d.jpg
lea eax, [ebp - 0x3e8]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp + 8]
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x7d0]
push eax
call sub.user32.dll_wsprintfA
add esp, 0xc
push dword [ebp + 0xc]
call sub.user32.dll_GetDC
mov ebx, eax
push ebx
call sub.gdi32.dll_CreateCompatibleDC
mov edi, eax
lea eax, [ebp - 0x7d0]
push eax
call fcn.00404fa0
mov esi, eax
or esi, esi
jne 0x401076
push 0x7d0
push 0
call fcn.00405050
mov esi, eax
push esi
push edi
call sub.gdi32.dll_SelectObject
push 0xcc0020
push 0
push 0
push edi
push 0x40
push 0x3a
push 0xec
push 0xd
push ebx
call sub.gdi32.dll_BitBlt
push esi
call sub.gdi32.dll_DeleteObject
push edi
call sub.gdi32.dll_DeleteDC
push ebx
push dword [ebp + 0xc]
call sub.user32.dll_ReleaseDC
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x405050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0x4071c0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x405077
push 2
call sub.kernel32.dll_SetLastError
xor eax, eax
leave
ret 8
mov dword [ebp - 4], eax
push eax
push dword [ebp + 8]
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4050ad
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00405402
jmp 0x4050b6
push 2
call sub.kernel32.dll_SetLastError
xor eax, eax
leave
ret 8

Function at 0x4050c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4050ec
xor eax, eax
leave
ret 0xc
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
add dword [ebp - 8], 0x20
push dword [ebp - 8]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, 1
leave
ret 0xc
Function at 0x405140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x40516b
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x408090
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
xor ecx, ecx
sub esi, str._aAiFC.
sub edi, str._aAiFC.
nop dword [eax]
movsx edx, byte [ecx + str._aAiFC.]
movsx eax, byte [esi + ecx + str._aAiFC.]
mov ebx, eax
add eax, edx
xor ebx, edx
cdq
xor eax, edx
sub eax, edx
test al, 1
cmove ebx, ebx
mov byte [edi + ecx + str._aAiFC.], bl
inc ecx
cmp ecx, 0x10
jl 0x4080b0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4188f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9ab6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x64de84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x635f00
call fcn.0058484f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d22ef
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418be0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9ab6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x64de84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x5d0768
call fcn.0058484f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d22ef
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e9c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca12a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x64de84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004d253e
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x41ea80
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0x5d0638
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x635e74
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0059cfcd
add esp, 8
mov dword [ebp - 0x24], 0x5d0690
lea eax, [ebp - 0x24]
push 0x64aaf0
push eax
call fcn.0059d6aa
push edi
push esi
call fcn.004d23f2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00584350
mov esp, ebp
pop ebp
ret 4
Function at 0x42fab0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbb29
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x64de84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x42fb0a
mov eax, dword [edi]
jmp 0x42fb0c
mov eax, edi
mov byte [eax], 0
mov dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test ebx, ebx
je 0x42fc90
nop word [eax + eax]
mov al, byte [edx]
dec ebx
mov byte [ebp + esi - 0x14], al
inc edx
mov ah, byte [ebp - 0x12]
inc esi
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov byte [ebp - 0xe], ah
mov byte [ebp + 0xb], ch
mov byte [ebp - 0xd], cl
cmp esi, 3
jne 0x42fbc7
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, ch
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
nop word [eax + eax]
cmp dword [0x6572d8], 0x10
mov eax, 0x6572c4
movzx ecx, byte [ebp + esi - 0x18]
cmovae eax, dword [0x6572c4]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
push 1
call fcn.0041eef0
inc esi
cmp esi, 4
jl 0x42fb90
mov edx, dword [ebp - 0x20]
xor esi, esi
mov ch, byte [ebp + 0xb]
mov cl, byte [ebp - 0xd]
test ebx, ebx
jne 0x42fb30
mov dword [ebp + 8], esi
test esi, esi
je 0x42fc90
mov eax, esi
cmp esi, 3
jge 0x42fc01
cmp eax, 3
jae 0x42fbfc
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x42fbe4
mov dl, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x42fc04
call fcn.005849b3
mov dl, byte [ebp - 0xe]
mov al, cl
xor ebx, ebx
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [ebp - 0x17], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [ebp - 0x15], dl
lea eax, [esi + 1]
mov byte [ebp - 0x16], ch
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x42fc6e
mov esi, eax
cmp dword [0x6572d8], 0x10
mov eax, 0x6572c4
movzx ecx, byte [ebp + ebx - 0x18]
cmovae eax, dword [0x6572c4]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
push 1
call fcn.0041eef0
inc ebx
cmp ebx, esi
jl 0x42fc40
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x42fc90
mov ebx, 3
sub ebx, esi
nop word [eax + eax]
push 0x3d
push 1
mov ecx, edi
call fcn.0041eef0
sub ebx, 1
jne 0x42fc80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430480
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, edx
xor edx, edx
push edi
mov edi, ecx
lea eax, [esi - 1]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
lea ecx, [edi + eax*4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + eax*4]
mov eax, 0x34
div esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
lea edx, [eax + 6]
xor eax, eax
cmp esi, 1
jb 0x430580
test edx, edx
je 0x430580
push ebx
sub eax, 0x61c88647
dec edx
mov ebx, eax
mov dword [ebp - 0xc], eax
shr ebx, 2
xor eax, eax
and ebx, 3
mov dword [ebp - 0x18], edx
test esi, esi
je 0x43052d
nop
mov esi, dword [edi + eax*4 + 4]
mov edx, esi
shr ecx, 5
shr edx, 3
lea edi, [esi*4]
xor edi, ecx
mov ecx, dword [ebp - 4]
shl ecx, 4
xor edx, ecx
mov ecx, eax
add edi, edx
and ecx, 3
mov edx, dword [ebp + 8]
xor ecx, ebx
mov edx, dword [edx + ecx*4]
xor edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, esi
add edx, ecx
mov ecx, dword [ebp - 8]
xor edi, edx
add dword [ecx + eax*4], edi
mov ecx, dword [ecx + eax*4]
inc eax
mov edi, dword [ebp - 8]
mov dword [ebp - 4], ecx
cmp eax, dword [ebp - 0x10]
jb 0x4304e0
mov esi, dword [edi]
and eax, 3
shr ecx, 5
mov edx, esi
shr edx, 3
xor eax, ebx
lea edi, [esi*4]
xor edi, ecx
mov ecx, dword [ebp - 4]
shl ecx, 4
xor edx, ecx
mov ecx, dword [ebp + 8]
add edi, edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ecx + eax*4]
xor ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor eax, esi
mov esi, dword [ebp - 0x10]
add ecx, eax
mov eax, dword [ebp - 0x14]
xor edi, ecx
add dword [eax], edi
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [ebp - 4], ecx
test edx, edx
jne 0x4304c4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430590
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx]
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0xc], ecx
mov eax, 0x34
mov ebx, 0xb54cda56
div esi
push edi
imul eax, eax, 0x61c88647
lea edi, [esi - 1]
mov dword [ebp - 0x14], edi
sub ebx, eax
mov dword [ebp - 8], ebx
cmp edi, 1
jb 0x43068c
test ebx, ebx
je 0x43068c
mov edx, dword [ebp - 4]
lea eax, [ecx + edi*4]
mov dword [ebp - 0x10], eax
nop dword [eax]
shr ebx, 2
mov eax, edi
and ebx, 3
test edi, edi
je 0x430638
nop dword [eax]
mov esi, dword [ecx + eax*4 - 4]
lea edi, [edx*4]
mov ecx, esi
shr edx, 3
shr ecx, 5
xor edi, ecx
mov ecx, esi
shl ecx, 4
xor edx, ecx
mov ecx, eax
add edi, edx
and ecx, 3
mov edx, dword [ebp + 8]
xor ecx, ebx
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp - 8]
xor edx, esi
xor ecx, dword [ebp - 4]
add edx, ecx
mov ecx, dword [ebp - 0xc]
xor edi, edx
sub dword [ecx + eax*4], edi
mov edx, dword [ecx + eax*4]
mov dword [ebp - 4], edx
sub eax, 1
jne 0x4305f0
mov ecx, dword [ebp - 0x10]
lea edi, [edx*4]
shr edx, 3
and eax, 3
xor eax, ebx
mov ebx, dword [ebp - 8]
mov esi, dword [ecx]
mov ecx, esi
shr ecx, 5
xor edi, ecx
mov ecx, esi
shl ecx, 4
xor edx, ecx
mov ecx, dword [ebp + 8]
add edi, edx
mov ecx, dword [ecx + eax*4]
mov eax, ebx
xor eax, dword [ebp - 4]
xor ecx, esi
add ecx, eax
xor edi, ecx
mov ecx, dword [ebp - 0xc]
sub dword [ecx], edi
add ebx, 0x61c88647
mov edx, dword [ecx]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
jne 0x4305e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43dd40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccf46
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x64de84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x655db9], 0
je 0x43dfa3
cmp dword [0x6572f8], 8
mov esi, 0x6572e4
mov edx, dword [0x6572f4]
mov ecx, esi
cmovae ecx, dword [0x6572e4]
push 0
push 0x635fcc
call fcn.0041b1d0
add esp, 8
test eax, eax
jne 0x43def8
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0059d550
add esp, 0xc
mov dword [ebp - 0x454], 0
lea eax, [ebp - 0x454]
push eax
push 0x1c
push 0
call dword [0x5d03c4]
mov eax, dword [ebp - 0x454]
test eax, eax
je 0x43ddf6
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [0x5d03c8]
push 0x637ff0
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.005b15ab
add esp, 0xc
cmp word [ebp - 0x420], 0
jne 0x43de1d
xor ecx, ecx
jmp 0x43de35
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43de26
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.0041f530
cmp dword [0x6572f8], 8
mov edx, esi
cmovae edx, dword [0x6572e4]
xor ecx, ecx
call fcn.0043d970
push 0x638014
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x45c]
call fcn.0041ffd0
mov ecx, eax
call fcn.0041fa00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x450]
push dword [eax]
call fcn.00412b40
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x454]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43deaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
push 0x638024
lea ecx, [ebp - 0x450]
call fcn.00416610
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x450]
mov ecx, esi
push eax
call fcn.00418600
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x43def8
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.0041f8f0
cmp dword [0x6572f8], 8
push 0x40
cmovae esi, dword [0x6572e4]
push 0x638030
push esi
call fcn.005b0590
mov esi, eax
add esp, 0xc
test esi, esi
je 0x43dfa3
call fcn.0043dc10
push edx
push eax
lea ecx, [ebp - 0x438]
call fcn.0043dc30
cmp dword [ebp - 0x424], 0x10
lea eax, [ebp - 0x438]
push esi
cmovae eax, dword [ebp - 0x438]
push 1
push dword [ebp - 0x428]
push eax
call fcn.005b07ea
mov eax, dword [edi + 0x10]
add esp, 0x18
cmp dword [edi + 0x14], 0x10
jb 0x43df63
mov edi, dword [edi]
push esi
push 1
push eax
push edi
call fcn.005b07ea
push esi
push 2
push 1
push 0x636ea8
call fcn.005b07ea
push esi
call fcn.005b08b8
mov eax, dword [ebp - 0x424]
add esp, 0x24
cmp eax, 0x10
jb 0x43dfa3
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00420600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00584350
mov esp, ebp
pop ebp
ret