joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103f950
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x103f98f
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0x1052e4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00feee20
mov eax, dword [0x10b906c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.010579c1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1052e8e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1052fea
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.010651b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10bdfd0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.010555d9
mov ecx, dword [esi*4 + 0x10bdfd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1052fe3
cmp eax, dword [edi + ecx + 0x24]
jne 0x1052fe3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1052fe3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.010555d9
add esp, 0x14
test edx, edx
jl 0x1052fe3
jg 0x1052f59
test eax, eax
jb 0x1052fe3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1052fe3
jl 0x1052f73
cmp dword [ebp - 0x1008], eax
ja 0x1052fe3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1052f91
test ebx, ebx
je 0x1052fca
cmp ecx, edi
jae 0x1052fca
mov al, byte [ecx]
cmp al, 0xd
jne 0x1052fab
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1052fb7
cmp byte [ecx + 1], 0xa
jne 0x1052fb7
inc ecx
jmp 0x1052fb7
movzx eax, al
movsx eax, byte [eax + 0x10b9cc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1052f91
cmp edx, ebx
jne 0x1052f91
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1052fe8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00fee415
leave
ret
Function at 0x1054b25
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10b906c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x10a5880
push esi
call fcn.010531ed
pop ecx
pop ecx
test eax, eax
jne 0x1054b53
xor al, al
jmp 0x1054bd0
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0105485c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1054b8d
push dword [ebp - 0x210]
call fcn.01043504
xor al, al
jmp 0x1054bce
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1054b93
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1054bb3
push edx
call fcn.01054a5b
pop ecx
test al, al
je 0x1054b7e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1054bc1
mov bl, 1
push dword [ebp - 0x210]
call fcn.01043504
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00fee415
leave
ret

Function at 0x10562c3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10a62d0
push 0x10a62c8
push str.FlsAlloc
push 0x1e
call fcn.010560f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10562f7
push dword [ebp + 8]
mov ecx, esi
call dword [0x106a4e8]
call esi
jmp 0x10562fd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1056341
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10a62e0
push 0x10a62d8
push str.FlsGetValue
push 0x20
call fcn.010560f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1056378
push dword [ebp + 8]
mov ecx, esi
call dword [0x106a4e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1058ed5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1058f72
push ebx
push esi
call fcn.01058e9e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.01058de7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1058f1f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1058f71
push edi
push eax
call fcn.0105577b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1058f3f
call fcn.01055741
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1058f70
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.01058de7
add esp, 0x20
test eax, eax
jne 0x1058f5e
push edi
call fcn.01055741
jmp 0x1058f66
push ebx
call fcn.01055741
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1058f75
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1058f86
pop esi
ret
push ebx
push edi
push esi
call fcn.01058e9e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0105577b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1058fae
push ebx
push esi
push edi
call fcn.0103fb00
add esp, 0xc
push 0
call fcn.01055741
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1059372
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01058fc3
Function at 0x105ef4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10bdfd0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x105ef8c
cmp byte [ebx], 0xa
jne 0x105ef8c
or byte [eax + edi + 0x28], 4
jmp 0x105ef91
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x105f08f
mov al, byte [edx]
cmp al, 0x1a
je 0x105f071
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x105efc0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x105efe5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x105efef
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x105efa2
jmp 0x105f08f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x105f06c
cmp dword [ebp - 0xc], 0
je 0x105f06c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10bdfd0]
test byte [eax + edi + 0x28], 0x48
je 0x105f046
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x105f031
mov byte [esi], dl
jmp 0x105f042
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10bdfd0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x105f08f
cmp byte [ebp - 1], 0xa
jne 0x105f055
cmp esi, ebx
jne 0x105f055
mov byte [esi], 0xa
jmp 0x105f08e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.010555f7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x105f08f
mov byte [esi], 0xd
jmp 0x105f08e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10bdfd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x105f08b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x105f08f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x105f098
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10bdfd0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x105f0db
cmp word [esi], dx
jne 0x105f0db
or byte [edi + eax + 0x28], 4
jmp 0x105f0e0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x105f233
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x105f213
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x105f122
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x105f158
cmp eax, edx
jae 0x105f164
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x105f0fa
jmp 0x105f233
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x105f20f
cmp dword [ebp - 0x14], 0
je 0x105f20f
mov eax, dword [ebx*4 + 0x10bdfd0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x105f1e7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x105f1b0
mov word [esi], cx
jmp 0x105f1e3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10bdfd0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10bdfd0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10bdfd0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x105f233
pop ebx
cmp word [ebp - 4], bx
jne 0x105f1f8
cmp esi, dword [ebp + 0xc]
jne 0x105f1f8
mov word [esi], bx
jmp 0x105f230
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.010555f7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x105f233
push 0xd
jmp 0x105f22c
mov ecx, dword [ebx*4 + 0x10bdfd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x105f22a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x105f233
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x105fa54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0105f8c5
Function at 0x1060d28
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01060ca4
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1060ea0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1060ea0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1060e4f
jg 0x1060d81
test eax, eax
je 0x1060e45
push 1
push 0x1000
call fcn.010557c9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1060da7
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1060e3c
push 0x8000
push ebx
call fcn.010490db
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1060dd3
jg 0x1060dce
cmp ecx, 0x1000
jb 0x1060dd3
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0106034c
add esp, 0x10
cmp eax, 0xffffffff
je 0x1060e18
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1060dce
jl 0x1060dff
test ecx, ecx
jne 0x1060dc0
push dword [ebp - 0xc]
push ebx
call fcn.010490db
push esi
call fcn.01055741
add esp, 0xc
xor edi, edi
jmp 0x1060eb1
cmp byte [edi + 0x24], 0
je 0x1060e2f
cmp dword [edi + 0x20], 5
jne 0x1060e2f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1060e3a
mov edi, dword [edi + 0x18]
jmp 0x1060e3c
xor edi, edi
push esi
call fcn.01055741
pop ecx
jmp 0x1060eb1
test ecx, ecx
jg 0x1060e11
jl 0x1060e4f
test eax, eax
jae 0x1060e11
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.010555f7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1060e72
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1060e11
jmp 0x1060ea9
push ebx
call fcn.01059dfc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1060e11
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1060eb1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1060eae
mov edi, dword [edi + 0x18]
jmp 0x1060eb1
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.010555f7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c9d0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
push ebp
push edi
mov ecx, dword [eax]
push ecx
push 0x405d70
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
jne 0x43c9f0
pop edi
or eax, 0xffffffff
pop ebp
ret 4
mov ebp, dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
push ebx
mov ebx, dword [0x44d15c]
mov edi, 1
cmp ebx, edi
jl 0x43ca60
push esi
mov ecx, dword [0x44d160]
test ecx, ecx
je 0x43ca36
cmp word [ecx], 1
jne 0x43ca36
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov esi, edi
sub esi, edx
cmp esi, eax
jb 0x43ca2d
call ebp
mov ecx, dword [0x44d160]
lea eax, [esi*8]
jmp 0x43ca3e
call ebp
mov ecx, dword [0x44d160]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + eax]
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
je 0x43ca5f
add edi, 1
jo 0x43cabe
cmp edi, ebx
jle 0x43ca07
pop esi
mov eax, dword [0x44d15c]
pop ebx
cmp edi, eax
jle 0x43ca71
pop edi
xor eax, eax
pop ebp
ret 4
mov ecx, dword [0x44d160]
test ecx, ecx
je 0x43caa9
cmp word [ecx], 1
jne 0x43caa9
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub edi, edx
cmp edi, eax
jb 0x43ca95
call ebp
mov ecx, dword [0x44d160]
mov ecx, dword [ecx + 0xc]
lea eax, [edi*8]
pop edi
pop ebp
mov ax, word [ecx + eax + 4]
ret 4
call ebp
mov ecx, dword [0x44d160]
pop edi
pop ebp
mov ecx, dword [ecx + 0xc]
mov ax, word [ecx + eax + 4]
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x401058
Capabilities:
Copy file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 4]
push eax
push str.SoftwareInterChinaChin_ddress
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4010f3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push str.WorkingDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4010f3
lea eax, [ebp - 0x10c]
push str.cnacfg.exe
push eax
call fcn.00401190
pop ecx
lea eax, [ebp - 0x210]
pop ecx
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push 0
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4010eb
push 0x40
push 3
push 1
jmp 0x4010f9
push 0x10
push 3
push 2
jmp 0x4010f9
push 0x10
push 3
push 4
push dword [ebp + 8]
call fcn.00401000
add esp, 0x10
leave
ret

Function at 0x10054651
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.100546d0
jae 0x1005465d
xor ecx, ecx
call fcn.100546d0
jae 0x10054687
xor eax, eax
call fcn.100546d0
jae 0x10054698
mov al, 0x10
call fcn.100546d0
adc al, al
jae 0x10054679
jne 0x100546c5
stosb byte es:[edi], al
jmp 0x1005465e
call fcn.100546dc
dec ecx
loop 0x100546a4
mov eax, ebp
call fcn.100546da
jmp 0x100546c6
lodsb al, byte [esi]
shr eax, 1
je 0x100546ec
adc ecx, 2
mov ebp, eax
jmp 0x100546c6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.100546da
cmp eax, 0x7d00
jae 0x100546c4
cmp eax, 0x500
jae 0x100546c5
cmp eax, 0x7f
ja 0x100546c6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1005465e
pop ebp
ret 8
Function at 0x4e8d84
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x5db33c
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x4e8e48
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x4e8dbc
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x4e8e5f
dec edx
je 0x4e8ea0
jmp 0x4e8efd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x4e8efd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e8f60
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x4e8f7d
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x4e908f
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x4e8fb0
je 0x4e8ffc
sub ecx, 0x2b
je 0x4e8ff2
sub ecx, 4
je 0x4e8ff7
dec ecx
sub ecx, 0xa
jb 0x4e8fe1
jmp 0x4e8fff
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4e8fc2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4e8fd0
jmp 0x4e8fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4e8fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4e8fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4e8fff
mov byte [eax], 0x3e
jmp 0x4e8fff
mov byte [eax], 0x3f
jmp 0x4e8fff
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4e8f8f
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x4e904f
cmp byte [esp + 3], 0xff
jne 0x4e904f
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x4e9087
cmp dl, 0xff
je 0x4e9087
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x4e8f88
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x4e911c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x5ec7a0
mov eax, ebx
mov edx, 8
test al, 1
je 0x4e9138
shr eax, 1
xor eax, 0xedb88320
jmp 0x4e913a
shr eax, 1
dec edx
jne 0x4e912b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x4e9124
pop ebx
ret
Function at 0x4e9150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4e9159
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004e0a38
xor eax, eax
push ebp
push 0x4e9239
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004e911c
mov eax, dword [0x5ebe0c]
mov byte [eax], 0
mov dword [ebx], reloc.WINMM.dll_midiStreamOut
mov edx, dword [ebp - 4]
lea eax, reloc.WINMM.dll_midiStreamOut
call fcn.004dee7c
mov edx, 1
lea eax, reloc.WINMM.dll_midiStreamOut
call fcn.004df218
call fcn.004deba8
test eax, eax
jne 0x4e9216
lea eax, [ebp - 8]
push eax
lea edx, reloc.WINMM.dll_midiStreamOut
mov ecx, 0xfff1
lea eax, reloc.WINMM.dll_midiStreamOut
call fcn.004defcc
mov dx, word [ebp - 8]
test dx, dx
jbe 0x4e9210
lea eax, reloc.WINMM.dll_midiStreamOut
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x4e91ec
cmp dword [ebp - 8], 0
jne 0x4e91c3
lea eax, reloc.WINMM.dll_midiStreamOut
call fcn.004defec
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9240
lea eax, [ebp - 4]
call fcn.004e0588
ret

Function at 0x4f4718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x4f4738
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4f4726
pop edi
pop esi
pop ebx
ret