joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44da10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x44da2d
mov esi, 0x80
cmp esi, dword [edi]
jne 0x44da3a
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x5485f8]
test eax, eax
je 0x44da45
call eax
lea ecx, [esi*8]
push ecx
call fcn.0044a660
mov ebp, eax
mov eax, dword [0x5485fc]
add esp, 4
mov dword [esp + 0x10], ebp
test eax, eax
je 0x44da66
call eax
test ebp, ebp
je 0x44da31
mov edx, dword [edi + 0xc]
push edx
call sym.ShuamePacket.exe_sqlite3_free
add esp, 4
push ebp
mov dword [edi + 0xc], ebp
call dword [0x53e6a8]
mov ebx, eax
shr ebx, 3
add esp, 4
lea eax, [ebx*8]
push eax
push 0
push ebp
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call fcn.004f08c0
mov ecx, dword [edi + 8]
add esp, 0xc
mov dword [edi + 8], 0
test ecx, ecx
je 0x44db4f
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x44dae3
nop
movzx ebx, byte [esi]
movzx ebx, byte [ebx + 0x517de8]
lea ebp, [eax*8]
xor ebx, ebp
dec edx
xor eax, ebx
inc esi
test edx, edx
jg 0x44dac0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
xor edx, edx
div ebx
lea eax, [ebp + edx*8]
test eax, eax
je 0x44db2a
mov esi, dword [eax]
test esi, esi
je 0x44db00
mov edx, dword [eax + 4]
jmp 0x44db02
xor edx, edx
inc esi
mov dword [eax], esi
mov dword [eax + 4], ecx
test edx, edx
je 0x44db2a
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x44db22
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x44db43
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x44db43
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x44db39
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x44dab3
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret

Function at 0x44e390
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
push esi
push edi
test eax, eax
je 0x44e3cb
cdq
mov edi, eax
add eax, dword [ebp + 0xc]
mov esi, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push esi
sub eax, 1
push edi
sbb ecx, 0
push ecx
push eax
call fcn.004fefd0
push esi
push edi
push edx
push eax
call fcn.004f2f10
jmp 0x44e3d1
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
mov esi, ebx
call fcn.0044e150
add esp, 8
test eax, eax
je 0x44e402
mov ecx, dword [ebx + 0x1c]
push 0x7e4b
mov edi, str.winTruncate1
mov ebx, 0x60a
call fcn.0044e0a0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44e43a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x1c]
mov dword [ebx + 0x10], eax
push 0x7e4e
mov edi, str.winTruncate2
mov ebx, 0x60a
call fcn.0044e0a0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e490
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e4d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x44e4d8
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x10], eax
push 0x7ea0
mov edi, str.winFileSize
mov ebx, 0x70a
call fcn.0044e0a0
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.004f2f10
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop ebx
ret
Function at 0x44f3d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x320
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [sym.ShuamePacket.exe_sqlite3_temp_directory]
push ebx
push ebp
mov ebp, dword [esp + 0x32c]
push esi
push edi
mov dword [esp + 0x14], ebp
test eax, eax
je 0x44f419
push eax
push 0x53f1b0
lea eax, [esp + 0x20]
push eax
push 0xe6
call sym.ShuamePacket.exe_sqlite3_snprintf
add esp, 0x10
jmp 0x44f4b6
call fcn.0044dd50
test eax, eax
je 0x44f453
lea ecx, [esp + 0x120]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x120]
call fcn.0044de10
mov esi, eax
test esi, esi
je 0x44f5eb
push esi
push 0x53f1b4
jmp 0x44f49e
lea eax, [esp + 0x120]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x120]
push ecx
call fcn.0044de70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44f5eb
call fcn.0044de10
push ebx
mov esi, eax
call fcn.004ead0a
add esp, 4
test esi, esi
je 0x44f5eb
push esi
push 0x53f1b8
lea edx, [esp + 0x20]
push edx
push 0xe6
call sym.ShuamePacket.exe_sqlite3_snprintf
push esi
call fcn.004ead0a
add esp, 0x14
mov dl, byte [esp + 0x18]
lea eax, [esp + 0x18]
test dl, dl
je 0x44f4c8
inc eax
cmp byte [eax], 0
jne 0x44f4c2
lea ecx, [esp + 0x18]
sub eax, ecx
and eax, 0x3fffffff
cmp byte [str.etilqs_], 0
mov ecx, str.etilqs_
je 0x44f4e7
inc ecx
cmp byte [ecx], 0
jne 0x44f4e1
sub ecx, str.etilqs_
and ecx, 0x3fffffff
lea eax, [ecx + eax + 0x11]
cmp eax, 0x105
jl 0x44f508
mov eax, 1
jmp 0x44f5f0
lea eax, [esp + 0x18]
test dl, dl
je 0x44f516
inc eax
cmp byte [eax], 0
jne 0x44f510
lea ecx, [esp + 0x18]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x44f52f
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x44f52f
sub eax, 1
jne 0x44f524
lea edx, [esp + 0x18]
push edx
push str._setilqs_
push ebp
push 0xf4
mov byte [esp + eax + 0x28], 0
call sym.ShuamePacket.exe_sqlite3_snprintf
add esp, 0x10
mov eax, ebp
test ebp, ebp
je 0x44f565
cmp byte [ebp], 0
je 0x44f55e
inc eax
cmp byte [eax], 0
jne 0x44f558
sub eax, ebp
and eax, 0x3fffffff
cmp dword [0x53e684], 0
mov esi, eax
mov edi, 0xf
lea ebx, [eax + ebp]
jne 0x44f57c
xor ebp, ebp
jmp 0x44f597
push 5
call dword [0x53e6c4]
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x44f597
push ebp
call dword [0x53e6cc]
add esp, 4
dec edi
call fcn.0044c0e0
mov byte [ebx], al
inc ebx
test edi, edi
jne 0x44f597
test ebp, ebp
je 0x44f5b2
push ebp
call dword [0x53e6d4]
add esp, 4
mov ecx, 0xf
jmp 0x44f5c0
mov edi, dword [esp + 0x14]
movzx eax, byte [edi + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
inc esi
sub ecx, 1
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], al
jne 0x44f5c0
mov ecx, edi
mov byte [ecx + esi], 0
xor eax, eax
jmp 0x44f5f0
mov eax, 7
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ea83a
add esp, 0x320
ret
Function at 0x44f890
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call fcn.0044dd50
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x44f8b7
call fcn.0044ddb0
mov edi, eax
jmp 0x44f8d6
call fcn.0044ddb0
mov esi, eax
cmp esi, ebp
je 0x44f8da
push esi
call fcn.0044dee0
add esp, 4
push esi
mov edi, eax
call fcn.004ead0a
add esp, 4
cmp edi, ebp
jne 0x44f8e7
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
call fcn.0044dd50
test eax, eax
je 0x44f934
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x44f91c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp eax, 5
jne 0x44f974
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x44f974
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44f900
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x44f95c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp eax, 5
jne 0x44f974
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x44f974
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44f940
push edi
call fcn.004ead0a
add esp, 4
cmp esi, 0xffffffff
jne 0x44f993
cmp dword [esp + 0x14], 2
jne 0x44f993
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x20]
push 0x83f7
mov edi, str.winDelete
mov ebx, 0xa0a
call fcn.0044e0a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x44fc50
Capabilities:
Get disk size

Disassembly:
sub esp, 0x11c
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x120]
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
push ecx
push 0x104
push eax
push edx
mov dword [esp + 0x24], 0x200
call fcn.0044fb10
add esp, 0x10
test eax, eax
jne 0x44fd63
call fcn.0044dd50
lea ebx, [esp + 0x18]
test eax, eax
je 0x44fca8
call fcn.0044ddb0
mov esi, eax
jmp 0x44fccb
call fcn.0044ddb0
mov edi, eax
test edi, edi
je 0x44fd46
push edi
call fcn.0044dee0
add esp, 4
push edi
mov esi, eax
call fcn.004ead0a
add esp, 4
test esi, esi
je 0x44fd46
call fcn.0044dd50
test eax, eax
mov eax, esi
je 0x44fd0d
cmp word [esi], 0
je 0x44fcf6
cmp word [eax], 0x5c
je 0x44fcf1
add eax, 2
cmp word [eax], 0
jne 0x44fce0
jmp 0x44fcf6
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 0x10]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x44fd37
cmp byte [esi], 0
je 0x44fd22
cmp byte [eax], 0x5c
je 0x44fd1f
inc eax
cmp byte [eax], 0
jne 0x44fd12
jmp 0x44fd22
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.004ead0a
add esp, 4
test edi, edi
jne 0x44fd63
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004ea83a
add esp, 0x11c
ret
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ea83a
add esp, 0x11c
ret

Function at 0x44ffb0
Capabilities:
Get system information on windows

Disassembly:
xor eax, eax
push 0x54bd20
mov dword [0x54bd20], eax
mov dword [0x54bd24], eax
mov dword [0x54bd28], eax
mov dword [0x54bd2c], eax
mov dword [0x54bd30], eax
mov dword [0x54bd34], eax
mov dword [0x54bd38], eax
mov dword [0x54bd3c], eax
mov dword [0x54bd40], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call sym.ShuamePacket.exe_sqlite3_initialize
test eax, eax
jne 0x45004b
push esi
cmp dword [0x53e684], eax
jne 0x450000
xor esi, esi
jmp 0x45001b
push 2
call dword [0x53e6c4]
mov esi, eax
add esp, 4
test esi, esi
je 0x45001b
push esi
call dword [0x53e6cc]
add esp, 4
mov edx, 0x53f200
call fcn.00449d10
mov eax, dword [0x548424]
mov dword [0x53f20c], eax
mov dword [0x548424], 0x53f200
test esi, esi
je 0x450047
push esi
call dword [0x53e6d4]
add esp, 4
xor eax, eax
pop esi
ret
xor eax, eax
ret
Function at 0x454510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [edi + 0x3c]
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x1c]
cmp dword [edx], ebp
jne 0x454547
mov eax, dword [edi + 0x78]
mov ecx, dword [edi]
or eax, 0x1e
push ebp
and eax, 0x87f3f
push eax
mov eax, dword [ecx + 0x18]
push edx
push ebp
push ecx
call eax
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x45462c
mov ecx, dword [edi + 0x18]
cmp ecx, dword [edi + 0x24]
jbe 0x454583
mov eax, dword [edi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.004f2f10
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 5
push eax
mov eax, dword [ecx + 0x28]
call eax
mov ecx, dword [edi + 0x18]
add esp, 0xc
mov dword [edi + 0x24], ecx
test esi, esi
je 0x45462a
mov ebx, dword [esi + 0xc]
cmp ebx, dword [edi + 0x18]
ja 0x45461b
test byte [esi + 0x14], 0x20
jne 0x45461b
mov eax, dword [edi + 0x80]
cdq
push edx
push eax
lea ecx, [ebx - 1]
push 0
push ecx
call fcn.004f2f10
mov dword [esp + 0x10], eax
mov ebp, edx
cmp ebx, 1
jne 0x4545c1
call fcn.00453610
mov ecx, dword [edi + 0x80]
mov eax, dword [edi + 0x3c]
mov esi, dword [esi]
mov edx, dword [eax]
push ebp
mov ebp, dword [esp + 0x14]
push ebp
push ecx
push esi
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
mov ebp, eax
cmp ebx, 1
jne 0x454601
mov ecx, dword [esi + 0x18]
lea eax, [esi + 0x18]
mov dword [edi + 0x64], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0x68], edx
mov ecx, dword [eax + 8]
mov dword [edi + 0x6c], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0x70], edx
cmp ebx, dword [edi + 0x20]
jbe 0x454609
mov dword [edi + 0x20], ebx
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
push eax
mov eax, dword [edi + 0x58]
call fcn.00463470
add esp, 4
mov esi, dword [esi + 8]
mov dword [esp + 0x1c], esi
test ebp, ebp
je 0x454583
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4724c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jne 0x4724da
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, 0x50
call fcn.0044ac10
mov edi, eax
test edi, edi
je 0x4724d1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx]
push eax
push ecx
push esi
call fcn.004720d0
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi], eax
mov eax, dword [ebx + 8]
push edx
push eax
push esi
call fcn.004721c0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
push ecx
push eax
push esi
call fcn.00471e50
mov edx, dword [ebp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
push edx
push eax
push esi
call fcn.004720d0
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
push 0
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
push ecx
push eax
push esi
call fcn.00471e50
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
push edx
push eax
push esi
call fcn.004720d0
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov cl, byte [ebx + 4]
add esp, 0x1c
mov byte [edi + 4], cl
mov eax, dword [ebx + 0x1c]
push edx
push eax
push esi
call fcn.004724c0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x28]
push ecx
push eax
push esi
call fcn.00471e50
mov edx, dword [ebp + 0x10]
push 0
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
push edx
push eax
push esi
call fcn.00471e50
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov cx, word [ebx + 6]
mov edx, 0xfff7
add esp, 0x20
and cx, dx
mov dword [edi + 0x24], eax
or eax, 0xffffffff
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov word [edi + 6], cx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479e90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
mov eax, ebp
test ebp, ebp
jne 0x479ea7
xor ebx, ebx
jmp 0x479ebf
cmp byte [ebp], 0
je 0x479eb6
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x479eb0
sub eax, ebp
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x479f7e
jmp 0x479ee4
mov esi, dword [esp + 0x10]
cmp esi, 2
jge 0x479eec
xor esi, 1
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x479f0c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov edx, esi
shl edx, 4
mov edx, dword [edx + eax]
call fcn.0044ca80
test eax, eax
jne 0x479f6b
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
shl esi, 4
mov ecx, dword [esi + edx + 0xc]
add ecx, 8
cmp dword [ecx + 0xc], 0
je 0x479f55
xor eax, eax
mov edi, ebx
mov edx, ebp
test ebx, ebx
jle 0x479f4f
lea ecx, [ecx]
movzx esi, byte [edx]
movzx esi, byte [esi + 0x517de8]
lea ebp, [eax*8]
xor esi, ebp
dec edi
xor eax, esi
inc edx
test edi, edi
jg 0x479f30
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x479f57
xor edx, edx
push ebp
call fcn.0044db60
add esp, 4
test eax, eax
je 0x479f88
mov edi, dword [eax + 8]
test edi, edi
jne 0x479f7e
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x479ee0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
jmp 0x479f6b

Function at 0x47a020
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, edi
test edi, edi
jne 0x47a036
xor ebx, ebx
jmp 0x47a04f
cmp byte [edi], 0
je 0x47a046
jmp 0x47a040
inc eax
cmp byte [eax], 0
jne 0x47a040
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
test edx, edx
jle 0x47a10c
mov ecx, dword [ecx + 8]
push esi
mov dword [esp + 0x14], ecx
jmp 0x47a074
mov eax, dword [esp + 0x10]
cmp eax, 2
jge 0x47a07c
xor eax, 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
shl eax, 4
mov esi, dword [eax + edx + 0xc]
add eax, edx
test ecx, ecx
je 0x47a09c
mov edx, dword [eax]
call fcn.0044ca80
test eax, eax
jne 0x47a0eb
cmp dword [esi + 0x24], 0
lea ecx, [esi + 0x18]
je 0x47a0d5
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x47a0cf
nop
movzx edi, byte [edx]
movzx edi, byte [edi + 0x517de8]
lea ebp, [eax*8]
xor edi, ebp
dec esi
xor eax, edi
inc edx
test esi, esi
jg 0x47a0b0
mov edi, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x47a0d7
xor edx, edx
push edi
call fcn.0044db60
add esp, 4
test eax, eax
je 0x47a108
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x47a0fe
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x47a070
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
jmp 0x47a0eb
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x47e900
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esi]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
jmp 0x47e920
mov al, byte [ebp + 0x518664]
mov byte [esp + 0x10], al
test edi, edi
je 0x47e9a5
cmp byte [edi], 0
mov eax, edi
je 0x47e93b
inc eax
cmp byte [eax], 0
jne 0x47e935
mov ecx, dword [esp + 0x20]
sub eax, edi
and eax, 0x3fffffff
add ecx, 0x19c
cmp dword [ecx + 0xc], 0
mov ebx, eax
je 0x47e98d
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x47e983
mov edi, edi
movzx edi, byte [edx]
movzx edi, byte [edi + 0x517de8]
lea ebp, [eax*8]
xor edi, ebp
dec esi
xor eax, edi
inc edx
test esi, esi
jg 0x47e960
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
xor edx, edx
div dword [ecx]
jmp 0x47e98f
xor edx, edx
push edi
call fcn.0044db60
add esp, 4
test eax, eax
je 0x47e9a1
mov eax, dword [eax + 8]
jmp 0x47e9ac
xor eax, eax
jmp 0x47e9ac
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x47e9bc
movzx ecx, byte [esp + 0x10]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4 - 0x14]
cmp dword [eax + 0xc], 0
jne 0x47e9dd
inc ebp
cmp ebp, 3
mov dword [esp + 0x14], ebp
jl 0x47e920
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 0x10]
pop edi
mov dword [esi + 0x10], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4a4900
Capabilities:
Check if file exists
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x50edfb
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
mov eax, dword [esi]
push eax
mov ebx, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a495e
push ebx
mov ecx, 0x517d7c
call fcn.00406d70
jmp 0x4a4a21
push 0x40
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x1c], vtable.CMD5Checksum.0
call fcn.004f08c0
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x68], 0x67452301
mov dword [esp + 0x6c], 0xefcdab89
mov dword [esp + 0x70], 0x98badcfe
mov dword [esp + 0x74], 0x10325476
mov dword [esp + 0x484], edi
mov ecx, dword [esi]
push 0x517da0
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], edi
call fcn.004ef7c3
mov eax, dword [esp + 0x24]
add esp, 0x18
cmp eax, edi
je 0x4a4a18
push eax
push 0x400
lea eax, [esp + 0x74]
push 1
push eax
call fcn.004efab6
add esp, 0x10
cmp eax, edi
jbe 0x4a4a0b
lea esp, [esp]
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004a52d0
mov edx, dword [esp + 0xc]
push edx
push 0x400
lea eax, [esp + 0x74]
push 1
push eax
call fcn.004efab6
add esp, 0x10
cmp eax, edi
ja 0x4a49e0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004ec0d3
add esp, 4
lea edx, [esp + 0x10]
call fcn.004a5140
mov eax, ebx
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004ea83a
add esp, 0x470
ret
Function at 0x4af120
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50a1d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esi + 4], vtable.ICompressSetInStream.0
mov dword [esi + 8], vtable.ISequentialInStream.0
mov dword [esi + 0xc], vtable.ICompressSetOutStream.0
mov dword [esi + 0x10], vtable.ISequentialOutStream.0
mov dword [esi + 0x14], vtable.IOutStreamFlush.0
mov dword [esi + 0x18], vtable.ICryptoSetPassword.0
mov dword [esi + 0x1c], vtable.ICompressSetCoderProperties.0
mov dword [esi + 0x20], vtable.ICompressWriteCoderProperties.0
mov dword [esi + 0x24], vtable.ICryptoResetInitVector.0
mov dword [esi + 0x28], vtable.ICompressSetDecoderProperties2.0
xor edi, edi
mov dword [esi + 0x2c], edi
mov dword [esi], vtable.CFilterCoder.0
mov dword [esi + 4], vtable.CFilterCoder.1.0
mov dword [esi + 8], vtable.CFilterCoder.2.0
mov dword [esi + 0xc], vtable.CFilterCoder.3.0
mov dword [esi + 0x10], vtable.CFilterCoder.4.0
mov dword [esi + 0x14], vtable.CFilterCoder.5.0
mov dword [esi + 0x18], vtable.CFilterCoder.6.0
mov dword [esi + 0x1c], vtable.CFilterCoder.7.0
mov dword [esi + 0x20], vtable.CFilterCoder.8.0
mov dword [esi + 0x24], vtable.CFilterCoder.9.0
mov dword [esi + 0x28], vtable.CFilterCoder.10.0
mov dword [esi + 0x34], edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
push 4
push 0x1000
push 0x20000
push edi
mov byte [esp + 0x28], 7
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x30], eax
cmp eax, edi
jne 0x4af230
push 0x52e934
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 1
call fcn.004f0bbb
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4