joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4defa1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5134a8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 3
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov byte [esp + 0xc], 0
mov eax, dword [esp + 0xc]
push eax
push ecx
push edx
sub esp, 0xc
mov dword [esp + 0x24], esp
mov eax, esp
lea ecx, [esp + 0x60]
push ecx
push eax
call fcn.0044dd20
sub esp, 0xc
mov byte [esp + 0x48], 4
lea edx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0044e8b0
sub esp, 8
lea ecx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x48], esp
push ecx
mov byte [esp + 0x58], 5
call fcn.0044e8b0
add esp, 4
push esi
mov byte [esp + 0x58], 3
call fcn.0044e8e0
add esp, 0x34
lea edi, [esp + 0x30]
mov dword [esp + 0x10], 1
mov byte [esp + 0x24], 2
call fcn.00402690
lea edi, [esp + 0x3c]
mov byte [esp + 0x24], 1
call fcn.00402690
lea edi, [esp + 0x48]
mov byte [esp + 0x24], 0
call fcn.00402690
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x44e680
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4defa1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5134a8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 3
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov byte [esp + 0xc], 0
mov eax, dword [esp + 0xc]
push eax
push ecx
push edx
sub esp, 0xc
mov dword [esp + 0x24], esp
mov eax, esp
lea ecx, [esp + 0x60]
push ecx
push eax
call fcn.0044dd20
sub esp, 0xc
mov byte [esp + 0x48], 4
lea edx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0044e8b0
sub esp, 8
lea ecx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x48], esp
push ecx
mov byte [esp + 0x58], 5
call fcn.0044e8b0
add esp, 4
push esi
mov byte [esp + 0x58], 3
call fcn.0044ea10
add esp, 0x34
lea edi, [esp + 0x30]
mov dword [esp + 0x10], 1
mov byte [esp + 0x24], 2
call fcn.00402690
lea edi, [esp + 0x3c]
mov byte [esp + 0x24], 1
call fcn.00402690
lea edi, [esp + 0x48]
mov byte [esp + 0x24], 0
call fcn.00402690
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x450330
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4def40
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5134a8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [eax], vtable.Json::StyledWriter.0
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x30], ecx
mov edx, 0xf
mov dword [eax + 0x34], edx
mov byte [eax + 0x20], cl
mov dword [eax + 0x38], ecx
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], ecx
mov byte [eax + 0x40], cl
mov dword [eax + 0x58], 0x4a
mov dword [eax + 0x5c], 3
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 4
Function at 0x454a60
Capabilities:
Encode data using xor

Disassembly:
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x454a65
sub eax, edx
push edi
mov edi, eax
xor ecx, ecx
test edi, edi
jle 0x454a9c
jmp 0x454a80
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea eax, [edx + edx*4]
mov edx, ecx
sub edx, eax
mov al, byte [ebx + edx*4]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x454a80
pop edi
ret
Function at 0x454aa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x4ddf38
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x5134a8]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5134a8]
xor eax, esp
push eax
lea eax, [esp + 0x1ac]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1bc]
mov esi, ecx
xor ebx, ebx
push 0x4f6178
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
call fcn.00401f40
mov edi, 1
mov dword [esp + 0x1b4], edi
cmp ebp, ebx
jne 0x454b44
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00406040
mov byte [esp + 0x1b4], bl
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x14], edi
jb 0x454b37
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00460a90
add esp, 4
mov dword [esp + 0x58], 0xf
jmp 0x454cdc
mov dword [esp + 0x1c], edi
mov cl, 0x70
mov al, 0x66
mov edi, 4
mov byte [esp + 0x1a0], bl
lea ebx, [esp + 0x1c]
lea esi, [esp + 0x190]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 2
mov byte [esp + 0x190], 0x65
mov byte [esp + 0x191], 0x6b
mov byte [esp + 0x192], 0x6d
mov byte [esp + 0x193], cl
mov byte [esp + 0x194], al
mov byte [esp + 0x195], 0x6e
mov byte [esp + 0x196], 0x69
mov byte [esp + 0x197], al
mov byte [esp + 0x198], 0x32
mov byte [esp + 0x199], 0x37
mov byte [esp + 0x19a], 0x6c
mov byte [esp + 0x19b], 0x61
mov byte [esp + 0x19c], 0x72
mov byte [esp + 0x19d], 0x73
mov byte [esp + 0x19e], 0x67
mov byte [esp + 0x19f], cl
call fcn.00454a60
mov edx, dword [esp + 0x190]
mov eax, dword [esp + 0x194]
mov ecx, dword [esp + 0x198]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x19c]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
lea edi, [esp + 0x5c]
mov dword [esp + 0x74], 0xa
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
call fcn.00458c90
mov eax, edi
push eax
mov edx, ebp
lea ecx, [esp + 0x20]
call fcn.00459d50
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x1c0], 2
call fcn.00401ff0
mov edi, 0x10
mov byte [esp + 0x1b4], 1
cmp dword [esp + 0x38], edi
jb 0x454c8c
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00460a90
add esp, 4
mov ebp, 0xf
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401050
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.00406040
mov byte [esp + 0x1b4], bl
mov dword [esp + 0x14], 1
cmp dword [esp + 0x58], edi
jb 0x454cd8
mov eax, dword [esp + 0x44]
push eax
call fcn.00460a90
add esp, 4
mov dword [esp + 0x58], ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00401050
mov eax, esi
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00460790
add esp, 0x1a4
ret
Function at 0x4560d0
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x456107
pop esi
xor al, al
pop ebx
pop ecx
ret 4
push ebp
call fcn.004563d0
mov eax, dword [esi]
mov ebp, dword [sym.imp.libcurl.dll_curl_easy_setopt]
push 1
push 0x50
push eax
call ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
push ecx
push 0x2712
push edx
call ebp
mov eax, dword [esi]
push eax
mov dword [esi + 0x30], 1
call dword [sym.imp.libcurl.dll_curl_easy_perform]
mov edx, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push 0x200002
push edx
mov dword [esi + 0xc], eax
call dword [sym.imp.libcurl.dll_curl_easy_getinfo]
mov eax, dword [esi + 8]
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
test eax, eax
je 0x45616a
mov dword [esi + 8], 0xffffffff
cmp dword [esi + 0xc], 0
jne 0x456184
cmp dword [esp + 8], 0xc8
jne 0x456184
mov bl, 1
pop esi
mov al, bl
pop ebx
pop ecx
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov al, bl
pop ebx
pop ecx
ret 4
Function at 0x456580
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4dc831
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5134a8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea esi, [esp + 0x20]
mov ecx, ebp
mov dword [esp + 0x34], 2
call fcn.00407830
mov edi, eax
sub esp, 0xc
mov esi, esp
mov byte [esp + 0x40], 3
mov ecx, edi
mov edx, esi
mov dword [esp + 0x48], esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00402610
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
sub esp, 0xc
mov esi, esp
mov byte [esp + 0x4c], 4
lea ecx, [esp + 0x5c]
mov edx, esi
mov dword [esp + 0x30], esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00402610
mov ecx, dword [esp + 0x64]
mov dword [esi + 8], ecx
mov byte [esp + 0x4c], 3
call fcn.00456730
add esp, 0x18
lea edi, [esp + 0x20]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x34], 2
call fcn.00402690
sub esp, 0xc
mov esi, esp
lea ecx, [esp + 0x50]
mov edx, esi
mov dword [esp + 0x24], esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00402610
mov edx, dword [esp + 0x58]
mov dword [esi + 8], edx
sub esp, 0xc
mov esi, esp
mov byte [esp + 0x4c], 5
lea ecx, [esp + 0x68]
mov edx, esi
mov dword [esp + 0x34], esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00402610
mov eax, dword [esp + 0x70]
mov dword [esi + 8], eax
mov byte [esp + 0x4c], 2
call fcn.00456730
mov esi, dword [esp + 0x54]
add esp, 0x18
push eax
push esi
mov ecx, ebp
call fcn.004020d0
cmp dword [ebp + 0x1c], 0x10
jb 0x456696
mov eax, dword [ebp + 8]
jmp 0x456699
lea eax, [ebp + 8]
lea ebx, [eax + esi]
mov esi, dword [esp + 0x40]
push esi
mov ecx, ebp
call fcn.00409040
mov eax, 1
lea edi, [esp + 0x44]
mov dword [esp + 0x14], eax
mov byte [esp + 0x34], al
call fcn.00402690
lea edi, [esp + 0x50]
mov byte [esp + 0x34], 0
call fcn.00402690
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x20
Function at 0x458f00
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push edi
mov edi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x458f4e
nop
mov ebx, ecx
and ebx, 0x80000003
jns 0x458f2f
dec ebx
or ebx, 0xfffffffc
inc ebx
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov dl, byte [ecx + edi]
sar eax, 2
add eax, esi
mov byte [eax + ebx*4], dl
mov eax, dword [esi + 0x10]
add eax, eax
inc ecx
add eax, eax
cmp ecx, eax
jl 0x458f20
lea ebp, [esi + 4]
mov eax, ebp
lea ecx, [esi + 0x3d]
mov edi, 4
jmp 0x458f60
movzx edx, byte [ecx - 1]
xor byte [eax - 4], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 8], dl
inc eax
add ecx, 4
sub edi, 1
jne 0x458f60
mov eax, dword [esi + 0x18]
lea ebx, [edi + 1]
dec eax
cmp eax, ebx
jl 0x458fde
lea edi, [esi + 0x4e]
mov eax, esi
call fcn.004591f0
push esi
call fcn.00459290
push esi
call fcn.00459430
mov ecx, edi
mov eax, ebp
mov edi, 4
lea ecx, [ecx]
movzx edx, byte [ecx - 2]
xor byte [eax - 4], dl
movzx edx, byte [ecx - 1]
xor byte [eax], dl
movzx edx, byte [ecx]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 8], dl
add ecx, 4
inc eax
sub edi, 1
jne 0x458fb0
mov eax, dword [esi + 0x18]
inc ebx
dec eax
cmp ebx, eax
mov edi, ecx
jle 0x458f91
mov eax, esi
call fcn.004591f0
push esi
call fcn.00459290
mov ecx, dword [esi + 0x18]
shl ecx, 4
mov eax, ebp
lea ecx, [ecx + esi + 0x3e]
mov edi, 4
lea esp, [esp]
movzx edx, byte [ecx - 2]
xor byte [eax - 4], dl
movzx edx, byte [ecx - 1]
xor byte [eax], dl
movzx edx, byte [ecx]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 8], dl
add ecx, 4
inc eax
sub edi, 1
jne 0x459000
mov eax, dword [esi + 0x10]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x459062
mov edi, ecx
and edi, 0x80000003
jns 0x45903f
dec edi
or edi, 0xfffffffc
inc edi
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, esi
mov dl, byte [eax + edi*4]
mov eax, dword [esp + 0x10]
mov byte [ecx + eax], dl
mov edx, dword [esi + 0x10]
add edx, edx
inc ecx
add edx, edx
cmp ecx, edx
jl 0x459030
pop edi
pop ebp
pop ebx
ret 4
Function at 0x459070
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
mov edi, ecx
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x4590c0
mov ebx, ecx
and ebx, 0x80000003
jns 0x4590a1
dec ebx
or ebx, 0xfffffffc
inc ebx
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov dl, byte [ecx + esi]
sar eax, 2
add eax, edi
mov byte [eax + ebx*4], dl
mov eax, dword [edi + 0x10]
add eax, eax
inc ecx
add eax, eax
cmp ecx, eax
jl 0x459092
mov ecx, dword [edi + 0x18]
lea ebx, [edi + 4]
shl ecx, 4
mov eax, ebx
lea ecx, [ecx + edi + 0x3e]
mov esi, 4
movzx edx, byte [ecx - 2]
xor byte [eax - 4], dl
movzx edx, byte [ecx - 1]
xor byte [eax], dl
movzx edx, byte [ecx]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 8], dl
add ecx, 4
inc eax
sub esi, 1
jne 0x4590d4
mov eax, dword [edi + 0x18]
dec eax
cmp eax, 1
jl 0x459163
mov ecx, eax
shl ecx, 4
push ebp
lea ebp, [ecx + edi + 0x3e]
mov dword [esp + 0x10], eax
mov edi, edi
push edi
call fcn.00459360
mov eax, edi
call fcn.00459240
mov eax, ebx
mov ecx, ebp
mov esi, 4
jmp 0x459130
movzx edx, byte [ecx - 2]
xor byte [eax - 4], dl
movzx edx, byte [ecx - 1]
xor byte [eax], dl
movzx edx, byte [ecx]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 8], dl
add ecx, 4
inc eax
sub esi, 1
jne 0x459130
call fcn.00459560
sub ebp, 0x10
sub dword [esp + 0x10], 1
jne 0x459110
pop ebp
push edi
call fcn.00459360
mov eax, edi
call fcn.00459240
mov eax, ebx
lea ecx, [edi + 0x3d]
mov esi, 4
lea ebx, [ebx]
movzx edx, byte [ecx - 1]
xor byte [eax - 4], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 8], dl
inc eax
add ecx, 4
sub esi, 1
jne 0x459180
mov eax, dword [edi + 0x10]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x4591e2
mov esi, ecx
and esi, 0x80000003
jns 0x4591bf
dec esi
or esi, 0xfffffffc
inc esi
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, edi
mov dl, byte [eax + esi*4]
mov eax, dword [esp + 0x14]
mov byte [ecx + eax], dl
mov edx, dword [edi + 0x10]
add edx, edx
inc ecx
add edx, edx
cmp ecx, edx
jl 0x4591b0
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4591f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
add eax, 4
mov ecx, 4
jmp 0x459200
movzx edx, byte [eax - 4]
movzx edx, byte [edx + 0x517df0]
mov byte [eax - 4], dl
movzx edx, byte [eax]
movzx edx, byte [edx + 0x517df0]
mov byte [eax], dl
movzx edx, byte [eax + 4]
movzx edx, byte [edx + 0x517df0]
mov byte [eax + 4], dl
movzx edx, byte [eax + 8]
movzx edx, byte [edx + 0x517df0]
mov byte [eax + 8], dl
inc eax
sub ecx, 1
jne 0x459200
ret
Function at 0x459240
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
add eax, 4
mov ecx, 4
jmp 0x459250
movzx edx, byte [eax - 4]
movzx edx, byte [edx + 0x517ef0]
mov byte [eax - 4], dl
movzx edx, byte [eax]
movzx edx, byte [edx + 0x517ef0]
mov byte [eax], dl
movzx edx, byte [eax + 4]
movzx edx, byte [edx + 0x517ef0]
mov byte [eax + 4], dl
movzx edx, byte [eax + 8]
movzx edx, byte [edx + 0x517ef0]
mov byte [eax + 8], dl
inc eax
sub ecx, 1
jne 0x459250
ret
Function at 0x460790
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5134a8]
jne 0x46079a
repz ret
jmp fcn.004723c0

Function at 0x4631d0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4631ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4631f6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x46320d
mov ecx, dword [ebp - 4]
push ecx
call fcn.0046c030
add esp, 4
or eax, 0xffffffff
jmp 0x46320f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4a03fd
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
jne 0x4a0439
push 1
push 0x14
call fcn.004a1bcc
add esp, 8
mov dword [ebp - 4], eax
push 0x14
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00472a40
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x4a043f
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x30]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4a0479
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call fcn.004a1ba2
add esp, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
push 0
push 0
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4a04b9
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, 0x10
push eax
call fcn.004a1bcc
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4a0612
Capabilities:
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x4a062b
cmp dword [ebp + 0xc], 0
jne 0x4a062f
xor eax, eax
jmp 0x4a069c
call fcn.004a06a0
test eax, eax
jne 0x4a063d
or eax, 0xffffffff
jmp 0x4a069c
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8004
mov ecx, dword [0x51c834]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a0699
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a068f
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x6801
mov ecx, dword [0x51c834]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4a06a0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x51c834], 0
je 0x4a06b3
mov eax, 1
jmp 0x4a06f0
push 0
push 1
push 0x5149b4
push 0
push 0x51c834
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4a06eb
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x51c834
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4a06eb
xor eax, eax
jmp 0x4a06f0
mov eax, 1
pop ebp
ret
Function at 0x4b21ad
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.004b2255
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x4b2212
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4b2204
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp edx, 3
jge 0x4b2204
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
test ecx, ecx
jne 0x4b21cf
mov edx, dword [ebp - 0xc]
push edx
call fcn.004a1ba2
add esp, 4
jmp 0x4b2247
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4b2247
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp ecx, 3
jge 0x4b2247
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
test eax, eax
jne 0x4b2212
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xa
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004b2255
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b236e
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
push eax
call fcn.004a1ba2
add esp, 4
jmp 0x4b2383
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4b2642
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b0
cmp dword [0x51c864], 0
je 0x4b2674
push 0x118
mov eax, dword [0x51c864]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00469d00
add esp, 0xc
mov byte [ebp - 0x24], 0
jmp 0x4b26ef
call fcn.004b22dd
test eax, eax
je 0x4b26dd
lea edx, [ebp - 0x3ac]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x3ac]
push eax
call fcn.004b27e6
add esp, 4
mov dword [ebp - 0x3b0], eax
cmp dword [ebp - 0x3b0], 0
je 0x4b26db
push 0x118
mov ecx, dword [ebp - 0x3b0]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.00469d00
add esp, 0xc
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x3b0]
push eax
call fcn.004a1ba2
add esp, 4
jmp 0x4b26ef
lea ecx, [ebp - 0x13c]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x13c]
push edx
call fcn.0046bfa0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4b270c
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4b2724
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x13d]
cmp edx, 0x5c
jne 0x4b2724
jmp 0x4b2703
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x13c], 0
lea ecx, [ebp - 0x13c]
push ecx
push str._s_sqlite_
mov edx, dword [ebp + 8]
push edx
call fcn.004634b0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0046bfa0
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x140]
push ecx
push 0xf
call fcn.004bf570
add esp, 8
mov dword [ebp - 4], 0
jmp 0x4b278e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x140], eax
cmp dword [ebp - 4], 0xf
jge 0x4b27bd
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x140]
xor eax, eax
mov al, byte [ecx]
xor edx, edx
mov ecx, 0x3e
div ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x140]
mov cl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [eax], cl
jmp 0x4b2776
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x140]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004b2329
add esp, 4
test eax, eax
jne 0x4b27db
jmp 0x4b27e0
jmp 0x4b272f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4b2a9c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x4b2aac
xor eax, eax
jmp 0x4b2b27
call fcn.004b22dd
test eax, eax
jne 0x4b2acc
mov eax, dword [ebp + 8]
push eax
call fcn.0046bfa0
add esp, 4
cmp eax, 0x104
jbe 0x4b2acc
xor eax, eax
jmp 0x4b2b27
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b2255
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b2afc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call fcn.004a1ba2
add esp, 4
jmp 0x4b2b09
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4b2b13
xor eax, eax
jmp 0x4b2b27
mov edx, dword [ebp - 8]
and edx, 0x10
cmp edx, 0x10
je 0x4b2b22
xor eax, eax
jmp 0x4b2b27
mov eax, 1
mov esp, ebp
pop ebp
ret