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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
xor ecx, dword [ebx + 0x204]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
xor edx, dword [ebx + 0x208]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov esi, dword [ecx + 8]
mov edi, dword [eax + 0xc]
xor esi, dword [ebx + 0x20c]
xor edi, dword [ebx + 0x210]
push 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 4]
push eax
call fcn.0049fbe4
add esp, 0xc
mov dword [ebp - 0x18], 0x1f
mov eax, edi
mov edx, edi
mov ecx, dword [ebp - 0x18]
shr edx, 0x15
and ecx, 3
shl eax, 0xb
or eax, edx
add eax, esi
xor eax, dword [ebx + ecx*4 + 0x204]
xor ecx, ecx
mov edx, eax
and edx, 0xff
mov cl, byte [ebx + edx + 0x104]
mov edx, eax
shr edx, 8
and edx, 0xff
movzx edx, byte [ebx + edx + 0x104]
shl edx, 8
or ecx, edx
mov edx, eax
shr edx, 0x10
shr eax, 0x18
and edx, 0xff
and eax, 0xff
movzx edx, byte [ebx + edx + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl edx, 0x10
shl eax, 0x18
or ecx, edx
or ecx, eax
mov eax, esi
xor ecx, dword [ebp - 8]
mov edx, esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x18]
shr edx, 0xf
and ecx, 3
shl eax, 0x11
or eax, edx
xor eax, edi
add eax, dword [ebx + ecx*4 + 0x204]
xor ecx, ecx
mov edx, eax
and edx, 0xff
mov cl, byte [ebx + edx + 0x104]
mov edx, eax
shr edx, 8
and edx, 0xff
movzx edx, byte [ebx + edx + 0x104]
shl edx, 8
or ecx, edx
mov edx, eax
shr edx, 0x10
shr eax, 0x18
and edx, 0xff
and eax, 0xff
movzx edx, byte [ebx + edx + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl edx, 0x10
shl eax, 0x18
or ecx, edx
or ecx, eax
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
mov eax, ecx
mov edi, eax
mov esi, dword [ebp - 0x10]
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
jge 0x411dc5
mov eax, dword [ebp - 0x14]
xor esi, dword [ebx + 0x204]
mov dword [eax], esi
xor edi, dword [ebx + 0x208]
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], edi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
xor ecx, dword [ebx + 0x20c]
mov dword [eax + 8], ecx
mov eax, ebx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
xor edx, dword [ebx + 0x210]
mov dword [ecx + 0xc], edx
lea edx, [ebp - 0x28]
call fcn.00411f10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411f10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, 0x4bd234
xor ecx, ecx
movzx esi, byte [edx + ecx]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x204], esi
movzx esi, byte [edx + ecx + 1]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x208], esi
movzx esi, byte [edx + ecx + 2]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x20c], esi
movzx esi, byte [edx + ecx + 3]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x210], esi
add ecx, 4
cmp ecx, 0x10
jl 0x411f19
pop esi
pop ebx
ret
Function at 0x417d70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xffffff70
xor eax, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor edx, edx
mov dword [esp + 8], edx
mov esi, dword [esp + 8]
jmp 0x417ded
xor eax, eax
mov edx, dword [esp]
add edx, esi
add edx, eax
mov cl, byte [edx + 1]
mov byte [esp + eax + 0x19], cl
mov bl, byte [edx]
sub bl, cl
mov byte [esp + eax + 0x18], bl
mov dl, byte [edx + 2]
sub dl, cl
mov byte [esp + eax + 0x1a], dl
add eax, 3
cmp eax, 0x78
jl 0x417d9b
mov ebx, 3
mov cl, byte [esp + ebx + 0x18]
sub cl, byte [esp + ebx + 0x15]
movsx ecx, cl
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 8]
add dword [esp + edx*4 + 0xc], eax
inc ebx
cmp ebx, 0x78
jl 0x417dc7
add esi, 0x780
mov eax, dword [esp + 4]
add eax, 0xffffff88
cmp esi, eax
jl 0x417d99
inc dword [esp + 8]
cmp dword [esp + 8], 2
jle 0x417d93
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp edx, eax
jb 0x417e19
cmp eax, dword [esp + 0x14]
ja 0x417e19
xor eax, eax
jmp 0x417e25
mov eax, 1
cmp edx, dword [esp + 0x14]
jbe 0x417e25
inc eax
add esp, 0x90
pop esi
pop ebx
ret

Function at 0x418430
Capabilities:
Create thread

Disassembly:
push ebx
push ecx
push esp
push 0
push edx
push eax
push 0x10000
push 0
call sub.KERNEL32.DLL_CreateThread
mov ebx, eax
test ebx, ebx
jne 0x418471
mov edx, str.CreateThread_failed
mov eax, 0x4bb2e4
call fcn.0042eb48
mov eax, 0x4bb2e4
call fcn.0042ed78
mov eax, 0x4bb2e4
mov edx, 2
call fcn.0042ecd4
mov eax, ebx
pop edx
pop ebx
ret
Function at 0x42a034
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 5
push dword [ebp - 8]
push dword [0x4bb918]
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
push ebx
push dword [0x4bb918]
call sub.KERNEL32.DLL_LoadResource
mov edi, eax
push ebx
push dword [0x4bb918]
call sub.KERNEL32.DLL_SizeofResource
mov ebx, eax
push ebx
call fcn.0049eb98
pop ecx
mov esi, eax
test esi, esi
jne 0x42a092
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
xor eax, eax
jmp 0x42a19e
push ebx
push edi
push esi
call fcn.0049fbe4
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [esi]
add esp, 0xc
shr eax, 0x10
lea ecx, [ebp - 0x10]
cmp eax, 0xffff
lea eax, [ebp - 0x14]
sete bl
push eax
and ebx, 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0042a288
test al, al
je 0x42a100
mov ecx, esi
test bl, bl
je 0x42a0da
mov eax, ecx
add eax, 8
mov ecx, eax
movsx eax, word [ecx + 0xe]
imul dword [ebp - 0x10]
mov edi, 0x64
cdq
idiv edi
mov word [ecx + 0xe], ax
movsx eax, word [ecx + 0x10]
imul dword [ebp - 0x14]
mov edi, 0x64
cdq
idiv edi
mov word [ecx + 0x10], ax
mov edi, esi
mov eax, 0xd
test bl, bl
jne 0x42a10e
add eax, 0xfffffffc
add eax, eax
add edi, eax
cmp word [edi], 0xffff
jne 0x42a120
mov edx, 2
jmp 0x42a12a
mov eax, edi
call fcn.00411474
mov edx, eax
inc edx
add edx, edx
add edi, edx
cmp word [edi], 0xffff
jne 0x42a13c
mov ecx, 2
jmp 0x42a146
mov eax, edi
call fcn.00411474
mov ecx, eax
inc ecx
add ecx, ecx
lea edx, [ebp - 0x214]
add edi, ecx
mov ecx, 0x1000000
mov eax, edi
call fcn.004111a0
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x414]
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00429be0
lea eax, [ebp - 0x414]
push eax
call fcn.0049ff38
pop ecx
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
cmp dword [ebp - 0x10], 0x64
jne 0x42a19c
cmp dword [ebp - 0x14], 0x64
jne 0x42a19c
push esi
call fcn.0049eba8
pop ecx
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ebc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa00
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
push esi
mov eax, 0x1f6
call fcn.00413388
push eax
test ebx, ebx
je 0x42ebeb
cmp byte [ebx], 0
jne 0x42ebed
xor ebx, ebx
push ebx
call fcn.00480d50
add esp, 0xc
call sub.KERNEL32.DLL_GetLastError
cmp eax, 3
jne 0x42ec6e
push esi
call fcn.0049fe04
pop ecx
mov ebx, eax
mov eax, esi
call fcn.0040d1dc
test al, al
jne 0x42ec37
lea edx, [ebp - 0x400]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x400]
push ecx
call fcn.0049fe04
pop ecx
add eax, ebx
inc eax
mov ebx, eax
cmp ebx, 0x104
jle 0x42ec6e
push 0x104
mov eax, 0x564
call fcn.00413388
push eax
lea edx, [ebp - 0x600]
push edx
call fcn.004a2e18
add esp, 0xc
lea eax, [ebp - 0x600]
mov edx, 1
call fcn.0048a8f0
mov eax, edi
call fcn.0042ed78
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42eeac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
jg 0x42eecc
xor eax, eax
jmp 0x42ef8d
mov edx, dword [ebp - 0xc]
test edx, edx
jns 0x42eed6
add edx, 0xf
sar edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, 4
mov ecx, dword [eax]
xor ecx, dword [edx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, ebx
mov eax, dword [eax + 0xc]
xor eax, dword [edx + 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.0042f310
add dword [ebp - 8], 0x10
mov edx, dword [ebp - 0x14]
dec edx
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jle 0x42ef69
mov eax, ebx
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
xor ecx, dword [edx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0xc]
xor eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
add ebx, 0x10
lea edx, [ebp - 0x24]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0042f310
add dword [ebp - 8], 0x10
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jg 0x42ef25
mov eax, dword [ebp - 4]
add eax, 4
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
shl eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42ef94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x42efab
test esi, esi
jg 0x42efb2
xor eax, eax
jmp 0x42f05a
push 0x10
mov edx, dword [ebp - 4]
add edx, 4
push edx
lea ecx, [ebp - 0x28]
push ecx
call fcn.0049fbe4
add esp, 0xc
test esi, esi
jns 0x42efce
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
test esi, esi
jle 0x42f03f
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0042f88c
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x24]
xor dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x20]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0xc], eax
mov eax, ebx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec esi
test esi, esi
jg 0x42efdb
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.0049fbe4
add esp, 0xc
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42f064
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], 4
push 0x20
push edx
lea edx, [esp + 0x14]
push edx
call fcn.0049fbe4
add esp, 0xc
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x42f0cd
xor eax, eax
mov edi, esi
mov ebp, dword [esp]
shl edi, 4
lea ebx, [esp + edx*4 + 0xc]
lea edi, [ebp + edi]
mov bl, byte [ebx + eax]
lea edi, [edi + ecx*4]
mov byte [edi + eax + 0x14], bl
inc eax
cmp eax, 4
jl 0x42f098
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x42f0c5
cmp ecx, 4
jl 0x42f096
cmp ecx, 4
jne 0x42f0cd
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x42f0d8
cmp esi, 0xa
jle 0x42f0ba
cmp esi, 0xa
jg 0x42f26b
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x4bfdfc]
xor byte [esp + 0xc], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 0xa]
mov dl, byte [eax + 0x4bfdfc]
xor byte [esp + 0xd], dl
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x4bfdfc]
xor byte [esp + 0xe], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 8]
mov dl, byte [eax + 0x4bfdfc]
xor byte [esp + 0xf], dl
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x4bfffc]
xor byte [esp + 0xc], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x42f17b
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x42f219
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x42f15b
inc edx
cmp edx, dword [esp + 8]
jl 0x42f159
jmp 0x42f219
mov edx, 1
jmp 0x42f199
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x42f184
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x42f1a4
adc eax, 0
cmp edx, eax
jl 0x42f182
mov eax, dword [esp + 8]
sar eax, 1
jns 0x42f1b3
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x4bfdfc]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x4bfdfc]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x4bfdfc]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x4bfdfc]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x42f219
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x42f1fe
inc edx
cmp edx, dword [esp + 8]
jl 0x42f1fc
xor edx, edx
jmp 0x42f257
xor eax, eax
mov ebx, esi
shl ebx, 4
mov edi, dword [esp]
lea ebx, [edi + ebx]
lea ebx, [ebx + ecx*4]
lea edi, [ebx + eax + 0x14]
lea ebx, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
mov byte [edi], bl
inc eax
cmp eax, 4
jl 0x42f221
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x42f24f
cmp ecx, 4
jl 0x42f21f
cmp ecx, 4
jne 0x42f257
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x42f262
cmp esi, 0xa
jle 0x42f244
cmp esi, 0xa
jle 0x42f0e1
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42f274
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
shl ebx, 2
add edx, edi
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx ebp, byte [edx + 1]
mov bl, byte [edx]
lea ebp, [ebp*4 + 0x4c241a]
lea ebx, [ebx*4 + 0x4c201a]
mov bl, byte [ebx + eax]
xor bl, byte [ebp + eax]
movzx ebp, byte [edx + 2]
movzx edx, byte [edx + 3]
lea ebp, [ebp*4 + 0x4c281a]
lea edx, [edx*4 + 0x4c2c1a]
xor bl, byte [ebp + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x42f286
inc eax
cmp eax, 4
jl 0x42f284
mov ecx, esi
push 0x10
shl ecx, 4
lea eax, [esp + 4]
add ecx, edi
push eax
add ecx, 0x14
push ecx
call fcn.0049fbe4
add esp, 0xc
inc esi
cmp esi, 0xa
jl 0x42f282
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x431d38
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret
Function at 0x43ffac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
mov eax, dword [0x4c8488]
push ebx
push esi
cmp dword [eax + 0x30], 0
je 0x440165
push 1
push 0
mov edx, 0x4c7888
mov eax, 0x4d0b94
xor ecx, ecx
call fcn.00457674
dec eax
jne 0x440165
xor edx, edx
xor eax, eax
mov dword [ebp - 4], edx
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
cmp dword [0x4c4998], 3
jne 0x44000e
push 1
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, 0x4d0b94
call fcn.004592dc
jmp 0x440020
push 1
lea ecx, [ebp - 0xc]
lea edx, [ebp - 4]
mov eax, 0x4d0b94
call fcn.004591dc
cmp dword [ebp - 0xc], 0
je 0x440165
push 0x400
push 0
lea edx, [ebp - 0x418]
xor ecx, ecx
mov eax, dword [0x4c8488]
call fcn.004108b8
lea eax, [ebp - 0x418]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x440084
lea edx, [ebp - 0x418]
lea eax, [ebp - 0x18]
call fcn.00459bcc
xor edx, edx
mov dl, byte [ebp - 0x18]
cmp edx, 0x43
je 0x440076
xor ecx, ecx
mov cl, byte [ebp - 0x18]
cmp ecx, 0x4e
jne 0x440084
push dword [ebp - 4]
call fcn.0049e420
pop ecx
jmp 0x440165
push 0x4afec1
lea eax, [ebp - 0x418]
push eax
call fcn.004a1e14
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x4400cb
lea eax, [ebp - 0x418]
push eax
mov eax, 0x1f6
call fcn.00413388
push eax
push 0x4c7888
call fcn.00480d50
add esp, 0xc
push dword [ebp - 4]
call fcn.0049e420
pop ecx
jmp 0x440165
cmp dword [0x4c4998], 3
jne 0x440124
push ebx
push 0xff
call fcn.004a3b5c
add esp, 8
push ebx
push 0xfe
call fcn.004a3b5c
add esp, 8
xor esi, esi
cmp esi, dword [ebp - 0xc]
jge 0x44014c
push ebx
mov eax, dword [ebp - 8]
movzx edx, word [eax + esi*2]
push edx
call fcn.004a3b5c
add esp, 8
push ebx
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + esi*2]
sar eax, 8
push eax
call fcn.004a3b5c
add esp, 8
inc esi
cmp esi, dword [ebp - 0xc]
jl 0x4400f7
jmp 0x44014c
cmp dword [0x4c4998], 2
jne 0x44013b
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 4]
call sub.USER32.DLL_CharToOemBuffA
push ebx
push dword [ebp - 0xc]
push 1
push dword [ebp - 4]
call fcn.004a222c
add esp, 0x10
push ebx
call fcn.004a191c
pop ecx
push dword [ebp - 4]
call fcn.0049e420
pop ecx
push dword [ebp - 8]
call fcn.0049e420
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4403eb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb38
cmp byte [0x4bb8f4], 0
jne 0x4404db
push 0x400
lea eax, [ebp - 0x400]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push str.rar.ini
lea eax, [ebp - 0x400]
call fcn.0040c4d0
push eax
call fcn.0049fdd4
add esp, 8
lea edx, [ebp - 0x400]
lea ecx, [ebp - 0x464]
push edx
push 0x64
push ecx
push 0x4afc92
push str.regname
push str.registration
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea eax, [ebp - 0x400]
lea edx, [ebp - 0x4c8]
push eax
push 0x64
push edx
push 0x4afc92
push str.regcode
push str.registration
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea ecx, [ebp - 0x400]
push ecx
push 0
push str.informed
push str.registration
call sub.KERNEL32.DLL_GetPrivateProfileIntA
cmp byte [ebp - 0x464], 0
je 0x4404db
cmp byte [ebp - 0x4c8], 0
je 0x4404db
test eax, eax
jne 0x4404db
lea eax, [ebp - 0x400]
push eax
push 0x4b000c
push str.informed
push str.registration
call sub.KERNEL32.DLL_WritePrivateProfileStringA
push 0
push 0x4872a8
push dword [0x4cfe34]
push 0x4b000e
push dword [0x4bb918]
call sub.USER32.DLL_DialogBoxParamA
mov esp, ebp
pop ebp
ret

Function at 0x4408f9
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3d8
push ebx
mov ebx, str.MAIN_MENU
lea edx, [ebx + 0x409]
lea eax, [ebx + 0x62]
xor ecx, ecx
call fcn.00463dec
test eax, eax
jne 0x440a28
push 0x401
lea eax, [ebp - 0x804]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
lea edx, [ebx + 0x417]
lea eax, [ebp - 0x804]
push edx
call fcn.0040c4d0
push eax
call fcn.0049fdd4
add esp, 8
lea eax, [ebp - 0x400]
call fcn.0040cbd4
lea edx, [ebp - 0x400]
push edx
lea ecx, [ebp - 0xc08]
push ecx
call fcn.0049fdd4
add esp, 8
lea eax, [ebp - 0xc08]
call fcn.0040ca00
lea edx, [ebx + 0x417]
push edx
lea ecx, [ebp - 0xc08]
push ecx
call fcn.0049fcf8
add esp, 8
lea eax, [ebp - 0xc08]
xor edx, edx
call fcn.0040a918
test al, al
jne 0x440a15
lea ecx, [ebp - 0x804]
push ecx
call fcn.0049fe04
pop ecx
mov byte [ebp + eax - 0x803], 0
lea eax, [ebp - 0xc08]
push eax
call fcn.0049fe04
pop ecx
mov byte [ebp + eax - 0xc07], 0
push 0x1e
push 0
lea edx, [ebp - 0xc28]
push edx
call fcn.0049fc54
mov dword [ebp - 0xc24], 2
lea ecx, [ebp - 0x804]
lea eax, [ebp - 0xc08]
mov dword [ebp - 0xc20], ecx
mov dword [ebp - 0xc1c], eax
mov word [ebp - 0xc18], 0x14
add esp, 0xc
lea edx, [ebp - 0xc28]
push edx
call sub.SHELL32.DLL_SHFileOperationA
lea edx, [ebx + 0x409]
lea eax, [ebx + 0x62]
mov ecx, 1
call fcn.00463b18
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446c2a
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
cmp dword [0x4b03b8], 0
jne 0x446c72
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
cmp dword [ebp - 0x18], 0x8000000
mov dword [0x4b03b8], 0x400000
ja 0x446c5f
mov dword [0x4b03b8], 0x200000
cmp dword [ebp - 0x18], 0x4000000
ja 0x446c72
mov dword [0x4b03b8], 0x100000
mov eax, dword [0x4b03b8]
mov esp, ebp
pop ebp
ret

Function at 0x447b55
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff200
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.0040c4d0
mov edi, eax
cmp byte [0x4bd230], 0
je 0x447b8a
mov eax, 0x4bd130
mov ecx, 0x3a
mov edx, edi
call fcn.00411960
jmp 0x447b95
push 0x3a
push edi
call fcn.0049fe9c
add esp, 8
test eax, eax
je 0x447bd3
cmp byte [0x4b0484], 0
jne 0x447bd3
push 0x31
mov eax, 0x65
call fcn.00413388
push eax
mov eax, 0x528
call fcn.00413388
push eax
push ebx
call sub.USER32.DLL_MessageBoxA
dec eax
jne 0x447bcc
mov byte [0x4b0484], 1
jmp 0x447bd3
xor eax, eax
jmp 0x447cbd
mov edi, esi
cmp byte [0x4bd230], 0
je 0x447bf1
mov eax, 0x4bd130
mov ecx, 0x5c
mov edx, edi
call fcn.004119a0
jmp 0x447bfc
push 0x5c
push edi
call fcn.0049feb4
add esp, 8
mov edi, eax
test edi, edi
je 0x447c10
cmp esi, edi
je 0x447c10
xor eax, eax
mov al, byte [edi - 1]
cmp eax, 0x3a
jne 0x447c17
mov al, 1
jmp 0x447cbd
push esi
lea edx, [ebp - 0x400]
push edx
call fcn.0049fdd4
add esp, 8
sub edi, esi
lea ecx, [ebp - 0x800]
lea eax, [ebp - 0x400]
mov byte [ebp + edi - 0x400], 0
push 0x400
push ecx
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov byte [ebp - 0x401], 0
jmp 0x447caa
mov eax, 0x14d
call fcn.00413388
push eax
lea edx, [ebp - 0x800]
push edx
push str.__s__n_s
lea ecx, [ebp - 0xe00]
push ecx
call fcn.004a2e18
add esp, 0x10
mov eax, 0x65
push 0x34
call fcn.00413388
push eax
lea edx, [ebp - 0xe00]
push edx
push ebx
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x447c9b
xor eax, eax
jmp 0x447cbd
lea eax, [ebp - 0x800]
xor ecx, ecx
xor edx, edx
call fcn.0040a4a0
lea eax, [ebp - 0x800]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x447c52
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret