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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
mov eax, edx
call fcn.00492bd8
push 0xc
push ebx
lea edx, [ebp - 0xc]
push edx
call fcn.0049fbe4
add esp, 0xc
xor ebx, ebx
call fcn.00492b3c
xor byte [ebp + ebx - 0xc], al
mov al, byte [ebp + ebx - 0xc]
and eax, 0xff
call fcn.00492b60
inc ebx
cmp ebx, 0xc
jl 0x4929a4
mov edx, dword [0x4e162c]
xor eax, eax
mov al, byte [ebp - 1]
test byte [edx + 0x28], 2
je 0x4929de
movzx ecx, word [0x4f1692]
sar ecx, 8
jmp 0x4929ea
mov ecx, dword [0x4f1698]
shr ecx, 0x18
movzx ecx, cx
movzx eax, ax
cmp ecx, eax
je 0x4929f6
or eax, 0xffffffff
jmp 0x492a4a
mov eax, dword [0x4f1640]
cdq
cmp edx, dword [0x4e0b04]
jne 0x492a0f
cmp eax, dword [0x4e0b00]
jbe 0x492a1b
jmp 0x492a11
jle 0x492a1b
mov eax, dword [0x4e0b00]
mov ebx, eax
jmp 0x492a23
mov eax, dword [0x4f1640]
mov ebx, eax
mov esi, dword [0x4f163c]
jmp 0x492a3f
call fcn.00492b3c
xor byte [esi], al
mov al, byte [esi]
and eax, 0xff
call fcn.00492b60
inc esi
mov edx, ebx
add ebx, 0xffffffff
test edx, edx
jne 0x492a2b
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x492b60
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [0x4f2750]
xor edx, eax
and edx, 0xff
mov ecx, dword [edx*4 + 0x4bd234]
mov edx, dword [0x4f2750]
shr edx, 8
xor ecx, edx
mov dword [0x4f2750], ecx
mov ecx, dword [0x4f2750]
and ecx, 0xff
add dword [0x4f2754], ecx
imul edx, dword [0x4f2754], 0x8088405
inc edx
mov dword [0x4f2754], edx
mov edx, dword [0x4f2754]
shr edx, 0x18
xor edx, dword [0x4f2758]
and edx, 0xff
mov ecx, dword [edx*4 + 0x4bd234]
mov edx, dword [0x4f2758]
shr edx, 8
xor ecx, edx
mov dword [0x4f2758], ecx
ret
Function at 0x495a28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
cmp dword [ebx + 0x9c], 0xffffffff
je 0x495aaa
cmp dword [ebx + 0x9c], 0x40
jbe 0x495a5b
lea edx, [ebx + 0x40]
mov eax, ebx
call fcn.00495f90
mov dword [ebx + 0x9c], 0x14
mov ecx, 0x40
sub ecx, dword [ebx + 0x9c]
push ecx
push 0
mov eax, dword [ebx + 0x9c]
add eax, ebx
push eax
call fcn.0049fc54
add esp, 0xc
xor eax, eax
xor dword [ebx + eax*4], 0x36363636
inc eax
cmp eax, 0x10
jb 0x495a7c
lea eax, [ebx + 0x40]
call fcn.00495eec
lea ecx, [ebx + 0x40]
mov edx, 0x40
mov eax, ebx
call fcn.00495f18
mov dword [ebx + 0x9c], 0xffffffff
test esi, esi
je 0x495abb
lea ecx, [ebx + 0x40]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00495f18
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x495ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 4], edx
cmp dword [ebx + 0x9c], 0xffffffff
mov esi, eax
je 0x495ae3
mov ecx, ebx
xor edx, edx
xor eax, eax
call fcn.00495a28
lea edx, [ebx + 0x40]
lea eax, [ebp - 0x18]
call fcn.00495f90
xor eax, eax
xor dword [ebx + eax*4], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x495af0
lea eax, [ebx + 0x40]
call fcn.00495eec
lea ecx, [ebx + 0x40]
mov edx, 0x40
mov eax, ebx
call fcn.00495f18
lea ecx, [ebx + 0x40]
lea eax, [ebp - 0x18]
mov edx, 0x14
call fcn.00495f18
lea edx, [ebx + 0x40]
lea eax, [ebp - 0x18]
call fcn.00495f90
xor eax, eax
cmp eax, dword [ebp - 4]
jae 0x495b43
mov dl, byte [ebp + eax - 0x18]
mov byte [esi + eax], dl
inc eax
cmp eax, dword [ebp - 4]
jb 0x495b36
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495b4c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
lea eax, [ebp - 0xcc]
call fcn.004959a0
lea ecx, [ebp - 0xcc]
mov edx, edi
mov eax, esi
call fcn.004959b4
push 0xa0
lea edx, [ebp - 0xcc]
push edx
lea ecx, [ebp - 0x16c]
push ecx
call fcn.0049fbe4
add esp, 0xc
lea ecx, [ebp - 0x16c]
mov edx, dword [ebp + 0x14]
mov eax, ebx
call fcn.00495a28
mov eax, dword [ebp + 8]
mov ecx, 0x14
dec eax
xor edx, edx
div ecx
inc eax
xor edi, edi
mov dword [ebp - 4], eax
cmp edi, dword [ebp - 4]
jae 0x495c97
push 0x14
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.0049fc54
add esp, 0xc
push 0xa0
lea edx, [ebp - 0x16c]
push edx
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0049fbe4
lea eax, [edi + 1]
lea edx, [edi + 1]
shr eax, 0x18
lea ecx, [edi + 1]
shr edx, 0x10
mov byte [ebp - 0x18], al
shr ecx, 8
mov eax, edi
mov byte [ebp - 0x17], dl
inc eax
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
add esp, 0xc
xor esi, esi
cmp esi, dword [ebp + 0x10]
mov ebx, 4
jae 0x495c6b
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00495a28
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x18]
mov edx, 0x14
call fcn.00495ac0
xor ebx, ebx
mov al, byte [ebp + ebx - 0x18]
xor byte [ebp + ebx - 0x2c], al
inc ebx
cmp ebx, 0x14
jb 0x495c3c
push 0xa0
lea edx, [ebp - 0xcc]
push edx
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0049fbe4
add esp, 0xc
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x495c17
xor esi, esi
mov ebx, edi
shl ebx, 2
lea ebx, [ebx + ebx*4]
jmp 0x495c83
mov al, byte [ebp + esi - 0x2c]
mov edx, dword [ebp + 0xc]
mov byte [edx + ebx], al
inc esi
inc ebx
cmp esi, 0x14
jae 0x495c8d
cmp ebx, dword [ebp + 8]
jb 0x495c77
inc edi
cmp edi, dword [ebp - 4]
jb 0x495bbf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x495eec
Capabilities:
Hash data using sha1

Disassembly:
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax], edx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x4960d5
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, 0x4f59d4
push ebx
mov ecx, dword [edx]
mov ebx, dword [edx]
xor ecx, eax
and ecx, 0xff
shr ebx, 8
mov ecx, dword [ecx*4 + 0x4bd234]
xor ecx, ebx
mov dword [edx], ecx
mov ecx, dword [edx]
and ecx, 0xff
add dword [edx + 4], ecx
imul ecx, dword [edx + 4], 0x8088405
inc ecx
mov dword [edx + 4], ecx
mov ecx, dword [edx + 4]
mov ebx, dword [edx + 8]
shr ecx, 0x18
xor ecx, dword [edx + 8]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [ecx*4 + 0x4bd234]
xor ecx, ebx
mov dword [edx + 8], ecx
pop ebx
ret

Function at 0x496248
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp byte [0x4c55a0], 0
je 0x49628d
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
imul esi, dword [ebp - 0xc]
test esi, esi
je 0x49628d
call fcn.004960b4
mov edi, eax
xor eax, eax
mov al, byte [ebx]
call fcn.004960d5
mov edx, edi
dec esi
xor dl, byte [ebx]
mov byte [ebx], dl
inc ebx
test esi, esi
jne 0x496271
push dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004a222c
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4963df
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, 0x4f59f8
mov edi, 0x4f59f0
xor ebx, ebx
mov dword [0x4f59f4], 2
jmp 0x49658a
mov eax, dword [0x4b7390]
mov edx, dword [esi]
xor ecx, ecx
mov cl, byte [eax + edx + 2]
mov eax, dword [edi]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [edi], ecx
mov edx, dword [0x4f59e0]
mov ecx, dword [edi]
movzx eax, word [edx + ecx*2]
mov dword [ebp - 4], eax
mov edx, dword [esi]
and edx, 0x7fff
mov ecx, dword [0x4b7394]
mov word [ecx + edx*2], ax
mov eax, dword [0x4f59e0]
mov edx, dword [edi]
mov cx, word [esi]
mov word [eax + edx*2], cx
cmp dword [ebp - 4], 0
je 0x496476
mov eax, dword [esi]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x496476
mov eax, dword [ebp - 4]
call fcn.004967fc
mov ebx, eax
cmp ebx, dword [0x4f5a04]
jbe 0x496476
mov ebx, dword [0x4f5a04]
cmp ebx, 3
jb 0x49652b
mov edx, ebx
sub edx, 3
mov eax, dword [esi]
sub eax, dword [0x4f59fc]
call fcn.00498584
sub dword [0x4f5a04], ebx
cmp ebx, dword [0x4f5a0c]
ja 0x4964fb
dec ebx
inc dword [esi]
mov edx, dword [esi]
mov ecx, dword [0x4b7390]
movzx ecx, byte [ecx + edx + 2]
mov edx, dword [edi]
shl edx, 5
xor ecx, edx
and ecx, 0x7fff
mov dword [edi], ecx
mov edx, dword [edi]
mov ecx, dword [0x4f59e0]
movzx ecx, word [ecx + edx*2]
mov dword [ebp - 4], ecx
push ecx
mov edx, dword [esi]
mov ecx, dword [0x4b7394]
and edx, 0x7fff
dec ebx
lea ecx, [ecx + edx*2]
pop edx
mov word [ecx], dx
mov ecx, dword [edi]
mov edx, dword [0x4f59e0]
lea ecx, [edx + ecx*2]
mov dx, word [esi]
mov word [ecx], dx
jne 0x4964a0
inc dword [esi]
jmp 0x496546
add dword [esi], ebx
xor ebx, ebx
mov edx, dword [0x4b7390]
mov ecx, dword [esi]
movzx edx, byte [edx + ecx]
mov dword [edi], edx
mov ecx, dword [0x4b7390]
mov edx, dword [esi]
movzx ecx, byte [ecx + edx + 1]
mov edx, dword [edi]
shl edx, 5
xor ecx, edx
and ecx, 0x7fff
mov dword [edi], ecx
jmp 0x496546
mov eax, dword [0x4b7390]
mov ecx, dword [esi]
xor edx, edx
mov dl, byte [eax + ecx]
xor eax, eax
call fcn.00498584
dec dword [0x4f5a04]
inc dword [esi]
test eax, eax
je 0x496579
mov edx, dword [esi]
sub edx, dword [0x4f59e8]
cmp dword [0x4f59e8], 0
jl 0x496568
mov eax, dword [0x4b7390]
add eax, dword [0x4f59e8]
jmp 0x49656a
xor eax, eax
xor ecx, ecx
call fcn.004983a0
mov edx, dword [esi]
mov dword [0x4f59e8], edx
cmp dword [0x4f5a04], 0x106
jae 0x49658a
call fcn.004962ac
cmp dword [0x4f5a04], 0
jne 0x496401
mov edx, dword [esi]
sub edx, dword [0x4f59e8]
cmp dword [0x4f59e8], 0
jl 0x4965b5
mov eax, dword [0x4b7390]
add eax, dword [0x4f59e8]
jmp 0x4965b7
xor eax, eax
mov ecx, 1
call fcn.004983a0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4965c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov esi, 0x4f59f0
cmp ebx, 1
jl 0x4965de
cmp ebx, 9
jle 0x4965e8
mov eax, 0x4b73e8
call fcn.0049abc0
xor edx, edx
mov dword [0x4f59ec], edx
cmp dword [0x4f59e4], 0
jne 0x49660d
mov dword [0x4f59ec], 1
mov dword [0x4f59e4], 0x10000
cmp dword [0x4b7390], 0
jne 0x49664c
push 2
push 0x8000
call fcn.0049e3e4
add esp, 8
mov dword [0x4b7390], eax
cmp dword [0x4b7390], 0
jne 0x49664c
mov eax, 0x4bb2e4
call fcn.0042eb64
mov edx, 0x4b73e8
mov eax, 4
call fcn.0049a9ec
cmp dword [0x4b7394], 0
jne 0x4966af
push 2
push 0x8000
call fcn.0049e3e4
add esp, 8
mov dword [0x4b7394], eax
push 2
push 0x8000
call fcn.0049e3e4
add esp, 8
mov dword [0x4f59e0], eax
cmp dword [0x4b7394], 0
je 0x49668f
cmp dword [0x4f59e0], 0
jne 0x4966af
mov eax, 0x1ff
call fcn.00413388
push eax
call fcn.0048a820
pop ecx
mov edx, 0x4b73e8
mov eax, 4
call fcn.0049a9ec
mov edx, dword [0x4f59e0]
mov word [edx + 0xfffe], 0
push 0xfffe
push 0
push dword [0x4f59e0]
call fcn.0049fc54
movzx ecx, word [ebx*8 + 0x4b739a]
mov dword [0x4f5a0c], ecx
add esp, 0xc
movzx eax, word [ebx*8 + 0x4b7398]
mov dword [0x4f5a10], eax
cmp ebx, 2
movzx edx, word [ebx*8 + 0x4b739c]
mov dword [0x4f5a14], edx
movzx ecx, word [ebx*8 + 0x4b739e]
mov dword [0x4f5a08], ecx
jg 0x496715
or word [edi], 4
jmp 0x49671e
cmp ebx, 8
jl 0x49671e
or word [edi], 2
xor eax, eax
xor edx, edx
mov dword [0x4f59f8], eax
mov ebx, 0x8000
mov dword [0x4f59e8], edx
add ebx, ebx
mov edx, ebx
mov eax, dword [0x4b7390]
call dword [0x4b7860]
mov dword [0x4f5a04], eax
cmp dword [0x4f5a04], 0
je 0x496758
cmp dword [0x4f5a04], 0xffffffff
jne 0x49676c
mov dword [0x4f5a00], 1
xor ecx, ecx
mov dword [0x4f5a04], ecx
jmp 0x4967a9
xor eax, eax
mov dword [0x4f5a00], eax
cmp dword [0x4f5a04], 0x106
jae 0x496784
call fcn.004962ac
xor edx, edx
xor ebx, ebx
mov dword [esi], edx
mov edx, dword [0x4b7390]
mov eax, dword [esi]
shl eax, 5
xor ecx, ecx
mov cl, byte [edx + ebx]
inc ebx
xor eax, ecx
and eax, 0x7fff
cmp ebx, 2
mov dword [esi], eax
jb 0x49678a
pop edi
pop esi
pop ebx
ret
Function at 0x49f630
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x4a0e4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a0e68
call fcn.004a26b8
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4a0e84
test bl, 1
je 0x4a0e84
call fcn.004a6768
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4a1178
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004a2274
test byte [ebp + 0xd], 0xc0
jne 0x4a119c
mov eax, dword [0x4b8428]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4a11a9
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4a11d6
je 0x4a11e8
sub ecx, 0x100
je 0x4a11f6
sub ecx, 0x100
je 0x4a11fd
sub ecx, 0x100
je 0x4a11ef
jmp 0x4a1204
sub ecx, 0x600
je 0x4a11fd
sub ecx, 0x100
je 0x4a11e8
jmp 0x4a1204
mov edi, 1
jmp 0x4a1209
mov edi, 2
jmp 0x4a1209
mov edi, 4
jmp 0x4a1209
mov edi, 5
jmp 0x4a1209
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4a1230
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4b7ea0]
test al, 0x80
je 0x4a1229
mov ebx, 0x80
jmp 0x4a1242
mov ebx, 1
jmp 0x4a1242
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a1242
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4a1254
je 0x4a125d
dec eax
je 0x4a1266
jmp 0x4a126f
mov dword [ebp - 4], CreateStatusWindowA
jmp 0x4a127e
mov dword [ebp - 4], 0x40000000
jmp 0x4a127e
mov dword [ebp - 4], 0xc0000000
jmp 0x4a127e
push 1
call fcn.004a264c
pop ecx
mov ebx, eax
jmp 0x4a136a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4a129a
sub eax, 0x10
je 0x4a12a1
sub eax, 0x10
je 0x4a12aa
sub eax, 0x10
je 0x4a12b3
jmp 0x4a12b3
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4a12ba
mov dword [ebp - 8], 1
jmp 0x4a12ba
mov dword [ebp - 8], 2
jmp 0x4a12ba
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4a1323
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4a1318
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4a1318
add ebx, 0xffffffb2
push ebx
call fcn.004a264c
pop ecx
mov ebx, eax
jmp 0x4a136a
mov edi, esi
push edi
call fcn.004a10dc
pop ecx
test eax, eax
je 0x4a1337
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4a1343
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004a2374
add esp, 8
mov ebx, eax
inc eax
jne 0x4a136a
push 4
call fcn.004a264c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004a22a8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a186c
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4a1888
call fcn.004a26b8
jmp 0x4a18f7
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x4a18a4
call fcn.004a26b8
jmp 0x4a18f7
cmp dword [0x4f9928], 1
je 0x4a18f5
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004a663c
pop ecx
cmp al, 0x41
jl 0x4a18f5
cmp al, 0x5a
jg 0x4a18f5
cmp byte [ebp - 0x107], 0x3a
jne 0x4a18f5
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4a18f5
call fcn.004a26b8
jmp 0x4a18f7
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4a6700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4a6762
call fcn.004a66b0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0049fe04
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0049fe04
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a67e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4b9380], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4a68ba
cmp dword [0x4b937c], 0
jne 0x4a68ba
cmp dword [0x4b95a8], 0
je 0x4a6874
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004a65e4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a685a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004a65e4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a685a
lea ebx, [ebp - 0x84]
jmp 0x4a685b
inc ebx
call fcn.004a679c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4a68f5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4b9384
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0049fe04
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4b9387
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4a68f5
cmp dword [0x4b937c], 0
je 0x4a68d4
cmp dword [0x4b937c], 0xffffffff
je 0x4a68f5
push esi
call dword [0x4b937c]
pop ecx
mov eax, dword [0x4b9380]
test eax, eax
je 0x4a68f5
cmp dword [0x4b9380], 0xffffffff
je 0x4a68f5
cmp byte [eax], 0
je 0x4a68f5
push esi
push eax
call fcn.004a6700
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a8080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x4a80a6
test esi, esi
je 0x4a80a6
call fcn.004a6768
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x4a8118
call fcn.004a7d98
mov ebx, eax
test eax, eax
jne 0x4a80c1
call fcn.004a6768
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x4a8118
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x4a7fdc
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x4a810c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x4a8105
push 0x59
call fcn.004a264c
pop ecx
jmp 0x4a8118
call fcn.004a26b8
jmp 0x4a8118
mov dword [ebx + 8], eax
test edi, edi
je 0x4a8118
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x424981
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov eax, dword [ebx - 0x740674a9]
mov edi, ecx
mov ecx, dword [ebp + 8]
mov byte [edi + 0xc], 0
add bh, bh
or eax, 0x89018b0a
inc edi
add al, 0x8b
inc ecx
add al, 0xeb
push ss
mov eax, dword [0x83fc0db8]
and dword [0xa1127568], 0xffffffd0
ror dword [eax + eax - 0x77], 0x47
mov dword [edi + 4], eax
mov eax, dword [0x4cc1d4]
invalid
inc edi
or bl, ch
inc esp
push esi
call 0x8d432d25
lea edx, [edi + 4]
mov dword [edi], eax
push edx
lea esi, [edi + 8]
ja fcn.004249a5
Function at 0x428428
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov eax, dword [ebx - 0xe74a9a9]
push dword [esi + 0x2c]
call 0x8d687f0c
push cs
mov ebx, eax
mov ecx, ebx
sub ecx, 1
je 0x4284b5
sub ecx, 1
je 0x428498
dec ecx
sub ecx, 1
je 0x42847b
sub ecx, 4
je 0x428464
call 0xc775f28a
mov dword [eax], 0xeb4116
call 0x40ce279d
xor dl, byte [ebp - 0x17]
add al, byte [ecx]
mov ecx, dword [ebx - 0x7cdfb975]
inc esi
adc al, 8
mov eax, dword [esi + 0x20]
add dword [esi + 0x14], 8
shr eax, 4
test al, 1
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
mov edx, dword [eax - 4]
jmp 0x4284d3
mov eax, dword [esi + 0x20]
add dword [esi + 0x14], 4
shr eax, 4
test al, 1
mov eax, dword [esi + 0x14]
je 0x428491
mov eax, dword [eax - 4]
jmp 0x4284d0
mov ecx, dword [eax - 4]
xor edx, edx
jmp 0x4284d3
mov eax, dword [esi + 0x20]
add dword [esi + 0x14], 4
shr eax, 4
test al, 1
mov eax, dword [esi + 0x14]
je 0x4284af
movsx eax, word [eax - 4]
jmp 0x4284d0
movzx eax, word [eax - 4]
jmp 0x4284d0
mov eax, dword [esi + 0x20]
add dword [esi + 0x14], 4
shr eax, 4
test al, 1
mov eax, dword [esi + 0x14]
je 0x4284cc
movsx eax, byte [eax - 4]
jmp 0x4284d0
movzx eax, byte [eax - 4]
cdq
mov ecx, eax
push edi
mov edi, dword [esi + 0x20]
mov eax, edi
shr eax, 4
test al, 1
je 0x4284f7
test edx, edx
jg 0x4284f7
jl 0x4284ea
test ecx, ecx
jae 0x4284f7
neg ecx
adc edx, 0
neg edx
or edi, 0x40
mov dword [esi + 0x20], edi
cmp dword [esi + 0x28], 0
pop edi
jge 0x428507
mov dword [esi + 0x28], 0x840f01
jmp 0x428518
and dword [esi + 0x20], 0xfffffff7
mov eax, 0xc70c4983
cmp dword [esi + 0x28], eax
jle 0x428518
mov dword [esi + 0x28], eax
mov eax, ecx
or eax, edx
jne 0x428522
and dword [esi + 0x20], 0xffffffdf
call dword [ebx + ecx*4]
dec ebp
or byte [eax], cl
cmp ebx, 8
jne 0x428538
push edx
push ecx
mov ecx, esi
call fcn.00426810
jmp 0x428540
push ecx
mov ecx, esi
call 0x942679b
mov eax, dword [esi + 0x20]
shr eax, 7
test al, 1
je 0x428564
call 0x74442d50
sbb al, byte [ebx + 0x7400387e]
or byte [ebx + 0x38803446], cl
xor byte [esp + ecx - 1], dh
dec esi
xor al, 0x8b
dec esi
xor al, 0xc6
add dword [eax], esi
cmp dword [esi + 0x38], 0
je 0x428558
mov eax, dword [esi + 0x34]
cmp byte [eax], 0x30
je 0x428564
dec dword [esi + 0x34]
mov ecx, dword [esi + 0x34]
mov byte [ecx], 0x30
inc dword [esi + 0x38]
mov al, 1
pop esi
pop ebx
je 0x428544
or byte [eax], al
mov edi, edi
call dword [esi - 0x75]
int1
push edi
add dword [esi + 0x14], 4
mov eax, dword [esi + 0x14]
mov edi, dword [eax - 4]
call 0x8347493d
test eax, eax
jne 0x428599
call 0xc775f28a
mov dword [eax], 0xeb4116
call 0x12e279d
xor al, al
jmp 0x4285dd
push dword [esi + 0x2c]
call 0x8d687f0c
push cs
add eax, dword [eax]
push 0x74
sub eax, dword [ebx]
add byte [edx + 0x74], ch
sbb eax, 0x6a000348
je 0x4285c2
sub eax, 4
jne 0x428585
mov eax, dword [esi + 0x18]
cdq
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x4285d7
mov eax, dword [esi + 0x18]
mov dword [edi], eax
jmp 0x4285d7
mov byte [esi + 0x30], 1
mov al, 1
pop edi
mov eax, ebx
mov edx, dword [ecx + 0x20]
mov eax, edx
shr eax, 5
test al, 1
je 0x4285f5
or edx, 0x840f80
mov dword [ecx + 0x20], edx
push 0
push 8
call fcn.00428422
ret