joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447de0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x447e0d
xor ecx, ecx
jmp 0x447e19
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x447ecd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x447e40
mov dword [esp + 0xc], esi
jmp 0x447ea0
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x447e99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x447e8c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x447ea0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x447ea0
push 0x4b82d0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x447ea0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x447ec3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x447e32
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x447ee1
mov ecx, dword [ebx]
add ecx, 8
call fcn.00448020
test eax, eax
je 0x447ee1
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x447ef0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4a43eb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c3518]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.0048ab30
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x447f88
push 0x4be5ec
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0048ae2b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x44bfd7
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x44c000
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x4aebc8]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x44bfe0
pop esi
ret
Function at 0x44ca4f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c7578]
sub esp, 0x310
push ebx
push esi
test eax, eax
je 0x44ca7f
push eax
push 0x4b6ce0
lea eax, [ebp - 0x108]
push eax
push 0xe6
call fcn.0044af68
add esp, 0x10
jmp 0x44caed
call fcn.0044c2a1
mov esi, 0xe6
test eax, eax
je 0x44cab5
lea eax, [ebp - 0x310]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x310]
push eax
call fcn.0044c33a
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x44cad1
push 7
pop eax
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.0044c3fb
jmp 0x44caa7
push ebx
push 0x4b6ce0
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.0044af68
push ebx
call fcn.0048556b
add esp, 0x14
lea ecx, [ebp - 0x108]
call fcn.0044b648
test eax, eax
jbe 0x44cb06
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x44cb06
dec eax
jne 0x44cafd
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push str._setilqs_
push edi
push 0xe7
call fcn.0044af68
mov ecx, edi
call fcn.0044b648
mov esi, eax
lea eax, [esi + edi]
push eax
push 0x14
call fcn.0044b093
add esp, 0x18
push 0x14
pop ecx
movzx eax, byte [esi + edi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi + edi], al
inc esi
dec ecx
jne 0x44cb3f
mov byte [esi + edi], cl
xor eax, eax
jmp 0x44cab1

Function at 0x44ced6
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
lea eax, [ebp - 0x110]
push eax
push 0x104
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x200
push dword [ebp + 8]
call fcn.0044cdfe
add esp, 0x10
test eax, eax
jne 0x44cf94
lea eax, [ebp - 0x110]
push eax
call fcn.0044ca18
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x44cf8d
call fcn.0044c2a1
test eax, eax
mov eax, esi
je 0x44cf5a
cmp word [esi], bx
je 0x44cf44
cmp word [eax], 0x5c
je 0x44cf3f
inc eax
inc eax
cmp word [eax], bx
jne 0x44cf30
jmp 0x44cf44
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x44cf80
cmp byte [esi], bl
je 0x44cf6c
cmp byte [eax], 0x5c
je 0x44cf6a
inc eax
cmp byte [eax], bl
jne 0x44cf5e
jmp 0x44cf6c
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.0048556b
pop ecx
cmp edi, ebx
jne 0x44cf94
mov dword [ebp - 8], 0x200
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x461f91
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x461fa9
xor eax, eax
jmp 0x462093
mov esi, dword [ebp + 8]
push 0x44
call fcn.00449fba
mov esi, eax
pop ecx
test esi, esi
je 0x461fa2
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.00461d06
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.00461dd2
add esp, 0x14
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.00461a8e
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.00461d06
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.00461a8e
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.00461d06
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.00461f91
add esp, 0x3c
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.00461a8e
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.00461a8e
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x20
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e03f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push ebx
xor edi, edi
inc edi
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.00489500
add esp, 0x10
cmp eax, edi
jne 0x47e064
movzx esi, byte [ebp - 1]
xor eax, eax
jmp 0x47e072
push ebx
call fcn.0048a62a
mov esi, dword [ebp - 8]
neg eax
pop ecx
sbb eax, eax
mov dword [ebp - 8], esi
test eax, eax
jne 0x47e0ad
push ebx
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.00489500
add esp, 0x10
cmp eax, edi
jne 0x47e09f
movzx esi, byte [ebp - 1]
mov ecx, dword [ebp + 8]
shl esi, 8
xor eax, eax
add esi, dword [ebp - 8]
mov dword [ecx], esi
jmp 0x47e0b3
push ebx
call fcn.0048a62a
pop ecx
test eax, eax
je 0x47e090
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
and dword [ecx], 0
pop edi
pop esi
leave
ret

Function at 0x47e0b7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push ebx
xor edi, edi
inc edi
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.00489500
add esp, 0x10
cmp eax, edi
jne 0x47e0dc
movzx esi, byte [ebp - 1]
xor eax, eax
jmp 0x47e0ea
push ebx
call fcn.0048a62a
mov esi, dword [ebp - 8]
neg eax
pop ecx
sbb eax, eax
mov dword [ebp - 8], esi
test eax, eax
jne 0x47e117
push ebx
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.00489500
add esp, 0x10
cmp eax, edi
jne 0x47e10c
movzx esi, byte [ebp - 1]
xor eax, eax
jmp 0x47e117
push ebx
call fcn.0048a62a
neg eax
pop ecx
sbb eax, eax
mov ecx, esi
shl ecx, 8
add dword [ebp - 8], ecx
test eax, eax
jne 0x47e149
push ebx
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.00489500
add esp, 0x10
cmp eax, edi
jne 0x47e13e
movzx esi, byte [ebp - 1]
xor eax, eax
jmp 0x47e149
push ebx
call fcn.0048a62a
neg eax
pop ecx
sbb eax, eax
mov ecx, esi
shl ecx, 0x10
add dword [ebp - 8], ecx
test eax, eax
jne 0x47e189
push ebx
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.00489500
add esp, 0x10
cmp eax, edi
jne 0x47e17b
movzx esi, byte [ebp - 1]
mov ecx, dword [ebp + 8]
shl esi, 0x18
xor eax, eax
add esi, dword [ebp - 8]
mov dword [ecx], esi
jmp 0x47e18f
push ebx
call fcn.0048a62a
pop ecx
test eax, eax
je 0x47e16c
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
and dword [ecx], 0
pop edi
pop esi
leave
ret
Function at 0x47e1dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push esi
push 2
push 0
push dword [ebp + 8]
mov esi, 0xffff
mov dword [ebp - 4], esi
call fcn.00489808
add esp, 0xc
test eax, eax
je 0x47e20a
xor eax, eax
jmp 0x47e2d9
push dword [ebp + 8]
call fcn.0049b163
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, esi
jae 0x47e21d
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, 0x404
push edi
call fcn.004860e8
mov ebx, eax
pop ecx
test ebx, ebx
je 0x47e2d7
push 4
pop eax
cmp dword [ebp - 4], eax
jbe 0x47e2cd
jmp 0x47e24b
mov eax, dword [ebp - 8]
mov edi, 0x404
mov ecx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 8], ecx
cmp eax, ecx
ja 0x47e25d
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov esi, eax
sub esi, dword [ebp - 8]
sub eax, esi
cmp eax, edi
ja 0x47e26d
mov edi, eax
push 0
push esi
push dword [ebp + 8]
call fcn.00489808
add esp, 0xc
test eax, eax
jne 0x47e2cd
push dword [ebp + 8]
push 1
push edi
push ebx
call fcn.00489500
add esp, 0x10
cmp eax, 1
jne 0x47e2cd
lea eax, [edi - 3]
jmp 0x47e2b4
dec eax
cmp byte [eax + ebx], 0x50
jne 0x47e2b4
cmp byte [eax + ebx + 1], 0x4b
jne 0x47e2b4
cmp byte [eax + ebx + 2], 5
jne 0x47e2b4
cmp byte [eax + ebx + 3], 6
je 0x47e2ba
test eax, eax
jg 0x47e298
jmp 0x47e2c1
add eax, esi
mov dword [ebp - 0xc], eax
jne 0x47e2cd
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jb 0x47e243
push ebx
call fcn.0048556b
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x47eace
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x47eae9
push 0xffffffffffffff9a
pop eax
jmp 0x47ec43
push esi
mov esi, dword [eax + 0x7c]
cmp esi, ebx
jne 0x47eaf5
push 0xffffffffffffff9a
jmp 0x47eafb
cmp dword [esi], ebx
jne 0x47eb01
push 0xffffffffffffff9c
pop eax
jmp 0x47ec42
cmp ecx, ebx
jne 0x47eb0c
xor eax, eax
jmp 0x47ec42
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x14], ecx
cmp ecx, eax
jbe 0x47eb1f
mov dword [esi + 0x14], eax
push edi
cmp dword [esi + 0x14], ebx
jbe 0x47ec30
jmp 0x47eb2d
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x47eb8e
mov eax, dword [esi + 0x58]
cmp eax, ebx
jbe 0x47eb8e
mov edi, 0x4000
cmp eax, edi
jae 0x47eb4c
mov edi, eax
cmp edi, ebx
je 0x47ec35
mov eax, dword [esi + 0x68]
add eax, dword [esi + 0x3c]
push ebx
push eax
push dword [esi + 0x60]
call fcn.00489808
add esp, 0xc
test eax, eax
jne 0x47ec39
push dword [esi + 0x60]
push 1
push edi
push dword [esi]
call fcn.00489500
add esp, 0x10
cmp eax, 1
jne 0x47ec39
mov eax, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
cmp dword [esi + 0x64], ebx
jne 0x47ebe2
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x47eb9f
mov edi, eax
xor eax, eax
cmp edi, ebx
jbe 0x47ebb6
mov ecx, dword [esi + 4]
mov cl, byte [eax + ecx]
mov edx, dword [esi + 0x10]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x47eba5
mov ebx, dword [esi + 0x10]
push edi
push dword [esi + 0x50]
mov edx, ebx
call fcn.0047fc6f
sub dword [esi + 0x5c], edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add ebx, edi
add dword [ebp - 4], edi
pop ecx
pop ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x10], ebx
jmp 0x47ec20
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [esi + 4]
push eax
call fcn.004800dc
mov edi, dword [esi + 0x18]
mov edx, dword [ebp - 0xc]
sub edi, ebx
push edi
push dword [esi + 0x50]
mov dword [ebp - 8], eax
call fcn.0047fc6f
sub dword [esi + 0x5c], edi
add dword [ebp - 4], edi
add esp, 0xc
cmp dword [ebp - 8], 1
mov dword [esi + 0x50], eax
je 0x47ec30
cmp dword [ebp - 8], 0
jne 0x47ec3e
cmp dword [esi + 0x14], 0
ja 0x47eb2b
cmp dword [ebp - 8], 0
jne 0x47ec3e
mov eax, dword [ebp - 4]
jmp 0x47ec41
xor eax, eax
jmp 0x47ec41
or eax, 0xffffffff
jmp 0x47ec41
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47f436
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 0xc], eax
jle 0x47f44e
mov byte [ebp + eax - 4], cl
shr ecx, 8
inc eax
cmp eax, dword [ebp + 0xc]
jl 0x47f441
push dword [ebp + 8]
lea eax, [ebp - 4]
push 1
push dword [ebp + 0xc]
push eax
call fcn.0048967f
add esp, 0x10
dec eax
neg eax
sbb eax, eax
leave
ret
Function at 0x47f8de
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
test esi, esi
jne 0x47f8f0
push 0xffffffffffffff9a
pop eax
leave
ret
cmp dword [esi + 0xc], 0
je 0x47f8eb
push ebx
push edi
push eax
lea edi, [esi + 0x4068]
push dword [edi]
lea ebx, [esi + 0x10]
mov dword [ebx], edx
mov dword [esi + 0x14], eax
call fcn.0047fc6f
pop ecx
pop ecx
mov dword [edi], eax
cmp dword [esi + 0x14], 0
jbe 0x47f9ad
cmp dword [esi + 0x20], 0
jne 0x47f94c
push dword [esi]
lea edi, [esi + 0x64]
push 1
push dword [esi + 0x4c]
push edi
call fcn.0048967f
add esp, 0x10
cmp eax, 1
je 0x47f93e
or dword [ebp - 4], 0xffffffff
and dword [esi + 0x4c], 0
mov dword [esi + 0x20], 0x4000
mov dword [esi + 0x1c], edi
cmp dword [esi + 0x60], 8
jne 0x47f96d
mov eax, dword [esi + 0x24]
push 0
mov edi, ebx
mov dword [ebp - 8], eax
call fcn.004815ca
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x24]
sub eax, dword [ebp - 8]
pop ecx
jmp 0x47f9a0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
jb 0x47f979
mov eax, ecx
xor edi, edi
test eax, eax
jbe 0x47f98f
mov ecx, dword [ebx]
mov cl, byte [edi + ecx]
mov edx, dword [esi + 0x1c]
mov byte [edi + edx], cl
inc edi
cmp edi, eax
jb 0x47f97f
sub dword [esi + 0x14], eax
sub dword [esi + 0x20], eax
add dword [ebx], eax
add dword [esi + 0x1c], eax
add dword [esi + 0x18], eax
add dword [esi + 0x24], eax
add dword [esi + 0x4c], eax
cmp dword [ebp - 4], 0
je 0x47f912
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x47f9b3
Capabilities:
Write file on windows

Disassembly:
push esi
xor esi, esi
cmp ebx, esi
jne 0x47f9bf
push 0xffffffffffffff9a
pop eax
pop esi
ret
cmp dword [ebx + 0xc], esi
je 0x47f9ba
cmp dword [ebx + 0x60], 8
push ebp
push edi
mov dword [ebx + 0x14], esi
jne 0x47fa19
lea edi, [ebx + 0x10]
cmp dword [ebx + 0x20], 0
jne 0x47f9f9
push dword [ebx]
lea esi, [ebx + 0x64]
push 1
push dword [ebx + 0x4c]
push esi
call fcn.0048967f
add esp, 0x10
and dword [ebx + 0x4c], 0
mov dword [ebx + 0x20], 0x4000
mov dword [ebx + 0x1c], esi
mov ebp, dword [ebx + 0x24]
push 4
call fcn.004815ca
mov esi, eax
mov eax, dword [ebx + 0x24]
sub eax, ebp
add dword [ebx + 0x4c], eax
pop ecx
test esi, esi
je 0x47f9d2
cmp esi, 1
jne 0x47fa19
xor esi, esi
mov eax, dword [ebx + 0x4c]
test eax, eax
jbe 0x47fa3d
test esi, esi
jne 0x47fa3d
push dword [ebx]
push 1
push eax
lea eax, [ebx + 0x64]
push eax
call fcn.0048967f
add esp, 0x10
cmp eax, 1
je 0x47fa3d
or esi, 0xffffffff
cmp dword [ebx + 0x60], 8
jne 0x47fa55
test esi, esi
jne 0x47fa55
lea esi, [ebx + 0x10]
call fcn.00481cf0
and dword [ebx + 0x48], 0
mov esi, eax
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x4068]
push 4
pop ebp
add eax, 0x10
push ebp
push eax
call fcn.0047f469
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x24]
add eax, 0x14
push ebp
push eax
call fcn.0047f469
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x18]
add eax, 0x18
push ebp
push eax
call fcn.0047f469
add esp, 0x18
test esi, esi
jne 0x47faa4
push dword [ebx + 0x58]
lea edi, [ebx + 4]
push dword [ebx + 0x54]
call fcn.0047f3a8
pop ecx
pop ecx
mov esi, eax
push dword [ebx + 0x54]
call fcn.0048556b
pop ecx
test esi, esi
jne 0x47fb21
push dword [ebx]
call fcn.0049b163
mov edi, eax
mov eax, dword [ebx + 0x50]
push esi
add eax, 0xe
push eax
push dword [ebx]
call fcn.00489808
add esp, 0x10
test eax, eax
je 0x47fad5
or esi, 0xffffffff
jmp 0x47fb0d
mov ecx, dword [ebx + 0x4068]
push ebp
push dword [ebx]
call fcn.0047f436
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47fb0d
mov ecx, dword [ebx + 0x24]
push ebp
push dword [ebx]
call fcn.0047f436
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47fb0d
mov ecx, dword [ebx + 0x18]
push ebp
push dword [ebx]
call fcn.0047f436
pop ecx
pop ecx
mov esi, eax
push 0
push edi
push dword [ebx]
call fcn.00489808
add esp, 0xc
test eax, eax
je 0x47fb21
or esi, 0xffffffff
inc dword [ebx + 0x4070]
and dword [ebx + 0xc], 0
pop edi
pop ebp
mov eax, esi
pop esi
ret
Function at 0x47fb31
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebx, eax
xor esi, esi
xor ebp, ebp
test ebx, ebx
jne 0x47fb47
push 0xffffffffffffff9a
pop eax
jmp 0x47fc6a
cmp dword [ebx + 0xc], 1
jne 0x47fb54
call fcn.0047f9b3
mov esi, eax
push edi
push dword [ebx]
call fcn.0049b163
pop ecx
mov dword [esp + 0x10], eax
test esi, esi
jne 0x47fb97
mov edi, dword [ebx + 4]
jmp 0x47fb93
test esi, esi
jne 0x47fb8e
mov eax, dword [edi + 8]
test eax, eax
jbe 0x47fb8e
push dword [ebx]
push 1
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0048967f
add esp, 0x10
cmp eax, 1
je 0x47fb8e
or esi, 0xffffffff
add ebp, dword [edi + 8]
mov edi, dword [edi]
test edi, edi
jne 0x47fb6a
mov eax, dword [ebx + 4]
test eax, eax
je 0x47fbad
mov edi, dword [eax]
push eax
call fcn.0048556b
pop ecx
mov eax, edi
test edi, edi
jne 0x47fb9e
test esi, esi
jne 0x47fc58
push 4
push dword [ebx]
mov ecx, 0x6054b50
call fcn.0047f436
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47fc58
push 2
pop edi
push edi
push dword [ebx]
xor ecx, ecx
call fcn.0047f436
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47fc58
push edi
push dword [ebx]
xor ecx, ecx
call fcn.0047f436
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47fc58
mov ecx, dword [ebx + 0x4070]
push edi
push dword [ebx]
call fcn.0047f436
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47fc58
mov ecx, dword [ebx + 0x4070]
push edi
push dword [ebx]
call fcn.0047f436
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47fc58
push 4
push dword [ebx]
mov ecx, ebp
call fcn.0047f436
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47fc58
mov ecx, dword [esp + 0x10]
push 4
push dword [ebx]
call fcn.0047f436
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47fc58
push edi
push dword [ebx]
xor ecx, ecx
call fcn.0047f436
pop ecx
pop ecx
mov esi, eax
push dword [ebx]
call fcn.00488244
push ebx
call fcn.0048556b
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x481f5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x481fe9
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0048ca90
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x481fa9
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x481fcb
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x482117
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x482011
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x48201c
xor eax, eax
jmp 0x482067
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x482039
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.00482bc8
jmp 0x48204a
cmp ecx, 2
jne 0x482051
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.0047fc6f
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0048ca90
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x482092
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edi, [eax + ecx]
movzx eax, byte [edi]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x4820a6
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x481f67
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x482117
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x4820e6
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x4820cb
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.0048ab30
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x482117
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x482117
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x482100
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.0048ab30
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret