joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4189b8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.00407060
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004070ec
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4189ff
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040719c
jmp 0x418a18
mov edx, ebx
dec edx
mov eax, esi
call fcn.004073d0
push ebx
mov eax, dword [esi]
call fcn.004070ec
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43c8d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x43c96e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x43c932
cmp byte [ebx + 0x10], 0
jne 0x43c932
cmp byte [ebx + 0x3c], 0
jne 0x43c932
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x43c953
lea edx, [ebp - 4]
mov eax, dword [0x4a8874]
call fcn.0040a398
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42dcac]
call fcn.004160ec
call fcn.00405adc
jmp 0x43c953
lea edx, [ebp - 8]
mov eax, dword [0x4a8874]
call fcn.0040a398
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42dcac]
call fcn.004160ec
call fcn.00405adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c975
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407058
ret

Function at 0x43ccf4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x43cd42
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0043c7dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43cd5b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x43e344
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4adfa0
cmp dword [edi], 0
jne 0x43e3c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4adf9c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a6fe8
mov ecx, 2
call fcn.00404424
mov edx, 0x43e31c
lea eax, [esi + 5]
call fcn.0043e33c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043e33c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43e395
mov dword [0x4adf9c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4426c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44283b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004070b4
mov eax, dword [ebp - 4]
call fcn.00442188
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x442712
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407904
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00442fa4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4427f1
xor eax, eax
push ebp
push 0x4427ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004423a0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00442870
test al, al
je 0x4427c8
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040719c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4427c8
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004070ec
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00442300
test al, al
je 0x4427c2
mov eax, dword [ebp - 8]
call fcn.004070ec
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040720c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004426c0
dec ebx
cmp ebx, 0xffffffff
jne 0x442771
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4427f1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004423a0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
call fcn.004070ec
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0044238c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00442300
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442842
lea eax, [ebp - 0x3c]
call fcn.00407050
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407058
ret
Function at 0x4428dc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x442994
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00442870
test al, al
je 0x442976
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040719c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x442976
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004070ec
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.004070ec
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040720c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x44292f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44299b
lea eax, [ebp - 0x2c]
call fcn.00407050
lea eax, [ebp - 4]
call fcn.00407050
ret

Function at 0x442b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x442c08
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00442870
test al, al
je 0x442bea
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040719c
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x442bea
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004070ec
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.004070ec
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040720c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x442ba3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442c0f
lea eax, [ebp - 0x2c]
call fcn.00407050
lea eax, [ebp - 4]
call fcn.00407050
ret
Function at 0x442e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004421fc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004070ec
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.00442300
test al, al
jne 0x442ee8
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a87f4]
mov dl, 1
mov eax, dword [0x440fac]
call fcn.004161e4
call fcn.00405adc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x442ef4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004070ec
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.00442300
test al, al
jne 0x442f55
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a89a4]
mov dl, 1
mov eax, dword [0x440fac]
call fcn.004161e4
call fcn.00405adc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0044222c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4589a0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x458aca
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x458a8c
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404914
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0xc], 1
mov eax, esi
call fcn.004070ec
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call sub.wininet.dll_InternetCrackUrlW
mov eax, dword [ebp - 0x30]
add eax, 0xfffffffd
sub eax, 2
jb 0x458a47
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x40], 0x11
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
lea edx, [ebp - 0x48]
mov eax, dword [0x4a868c]
call fcn.0040a398
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x4583e0]
call fcn.004585d4
call fcn.00405adc
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x28], eax
movzx eax, word [ebp - 0x24]
mov dword [ebx + 0x24], eax
lea eax, [ebx + 0x1c]
push eax
mov edx, dword [ebp - 0x2c]
sub edx, edi
sar edx, 1
jns 0x458a64
adc edx, 0
inc edx
mov ecx, dword [ebp - 0x28]
mov eax, esi
call fcn.00407834
lea eax, [ebx + 0x20]
push eax
mov edx, dword [ebp - 0x10]
sub edx, edi
sar edx, 1
jns 0x458a7f
adc edx, 0
inc edx
mov ecx, dword [ebp - 0xc]
mov eax, esi
call fcn.00407834
jmp 0x458aaa
xor eax, eax
mov dword [ebx + 0x24], eax
lea eax, [ebx + 0x1c]
xor edx, edx
call fcn.00407060
lea eax, [ebx + 0x20]
xor edx, edx
call fcn.00407060
xor eax, eax
mov dword [ebx + 0x28], eax
lea eax, [ebx + 8]
mov edx, esi
call fcn.00407060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458ad1
lea eax, [ebp - 0x48]
call fcn.00407050
ret
Function at 0x458c24
Capabilities:
Access peb ldr_data
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
test dl, dl
je 0x458d53
mov eax, dword [ebp - 4]
cmp byte [eax + 5], 0
jne 0x458d8a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x458c52
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x458c5d
mov ebx, 3
jmp 0x458c5f
xor ebx, ebx
push 0
call sub.wininet.dll_InternetAttemptConnect
test eax, eax
je 0x458c6f
call fcn.004160d8
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004070ec
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.004070ec
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004070ec
push eax
call sub.wininet.dll_InternetOpenW
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], esi
test esi, esi
setne dl
xor dl, 1
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0045870c
xor eax, eax
push ebp
push 0x458d2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.004070ec
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004070ec
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
call fcn.004070ec
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
push eax
call sub.wininet.dll_InternetConnectW
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], ebx
test ebx, ebx
setne dl
xor dl, 1
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0045870c
mov eax, dword [ebp - 4]
mov byte [eax + 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x458d8a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x458d63
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x458d7b
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
mov byte [eax + 5], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x45b65c
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x45b66b
or edx, 0x200
test eax, 0x20000000
je 0x45b69f
test eax, 0x40000000
je 0x45b68a
test eax, 0x80000000
je 0x45b685
or edx, 0x40
jmp 0x45b6c6
or edx, 0x20
jmp 0x45b6c6
test eax, 0x80000000
je 0x45b699
or edx, 0x80
jmp 0x45b6c6
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x45b6b7
test eax, 0x80000000
je 0x45b6b2
or edx, 4
jmp 0x45b6c6
or edx, 2
jmp 0x45b6c6
test eax, 0x80000000
je 0x45b6c3
or edx, 8
jmp 0x45b6c6
or edx, 1
mov eax, edx
ret
Function at 0x45ca38
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x45cad2
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + 0x4a7510]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x4a7510]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x4a7510]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x4a7510]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x45ca57
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x45cae8
dec edx
je 0x45cb1d
jmp 0x45cb6e
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x4a7510]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + 0x4a7510]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x45cb6e
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x4a7510]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + 0x4a7510]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + 0x4a7510]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45cc50
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x45cc6f
add edx, 3
sar edx, 2
test edx, edx
jle 0x45cd7d
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x45cca4
je 0x45cce7
sub ecx, 0x2b
je 0x45ccdd
sub ecx, 4
je 0x45cce2
dec ecx
sub ecx, 0xa
jb 0x45cccf
jmp 0x45ccea
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x45ccb6
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x45ccc1
jmp 0x45ccea
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x45ccea
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x45ccea
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x45ccea
mov byte [eax], 0x3e
jmp 0x45ccea
mov byte [eax], 0x3f
jmp 0x45ccea
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x45cc87
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x45cd3b
cmp byte [esp + 7], 0xff
jne 0x45cd3b
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x45cd72
cmp dl, 0xff
je 0x45cd72
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x45cc7e
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x45dbb8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x45dbd9
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x45dbc6
pop edi
pop esi
pop ebx
ret
Function at 0x46ed6c
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x46ee35
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00409fd0
mov eax, dword [ebp - 0x14]
call fcn.00406940
mov esi, eax
mov dword [ebp - 4], esi
mov eax, esi
call fcn.00412524
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.Crypt32.dll_CryptProtectData
test eax, eax
je 0x46ee08
mov eax, dword [ebp - 0x10]
push eax
mov eax, ebx
mov ecx, 1
mov edx, dword [0x40bef0]
call fcn.00408988
add esp, 4
mov edx, dword [ebp - 0x10]
dec edx
test edx, edx
jl 0x46edfd
inc edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
add ecx, eax
movzx ecx, byte [ecx]
mov esi, dword [ebx]
mov byte [esi + eax], cl
inc eax
dec edx
jne 0x46edec
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_LocalFree_1
jmp 0x46ee1f
push 0
mov eax, ebx
mov ecx, 1
mov edx, dword [0x40bef0]
call fcn.00408988
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ee3c
lea eax, [ebp - 0x14]
call fcn.004062c0
ret

Function at 0x46ee44
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46eeca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], ebx
mov eax, ebx
call fcn.004087c0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call sub.Crypt32.dll_CryptUnprotectData
test eax, eax
je 0x46eeab
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0040a254
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407060
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_LocalFree_1
jmp 0x46eeb4
mov eax, esi
xor edx, edx
call fcn.00407060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46eed1
lea eax, [ebp - 4]
call fcn.00407050
ret

Function at 0x477748
Capabilities:
Hash data with md5

Disassembly:
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x47feb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x47feb8
push ebx
push esi
push edi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48006b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp byte [eax + 0x70], 0
je 0x480048
mov edx, 0x480088
mov al, 1
call fcn.00496f24
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x48003c
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x18]
mov eax, 0x4800bc
call fcn.00407a20
dec eax
jne 0x480030
lea eax, [ebp - 0x1c]
call fcn.00499d3c
push dword [ebp - 0x1c]
push 0x4800d0
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x20]
push 0x480110
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040760c
mov eax, dword [ebp - 4]
call fcn.00411c58
test al, al
je 0x480030
mov dl, 1
mov eax, dword [0x4294d0]
call fcn.00435e64
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x480029
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov cl, 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00499c90
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x480013
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, 0x480120
call fcn.00407a20
dec eax
jne 0x48000f
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
call fcn.00407528
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
call fcn.004070ec
push eax
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
inc ebx
dec esi
jne 0x47ffbd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480030
mov eax, dword [ebp - 0x10]
call fcn.00404f48
ret
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x47ff0e
mov edx, 0x480088
mov al, 2
call fcn.00496f24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480072
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.00407058
lea eax, [ebp - 4]
call fcn.00407050
ret