joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4582c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4f8567
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x5198b0
mov dword [edi + 8], 0x50e4bc
mov dword [edi + 0x5c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0xc]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.004587a0
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.00453a00
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x538c44]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x45ec50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f43d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 1
mov byte [esp + 0xc], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
sub esp, 0xc
lea edi, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x24], esp
call fcn.0045eec0
sub esp, 0xc
lea edi, [esp + 0x48]
mov eax, esp
mov byte [esp + 0x40], 2
mov dword [esp + 0x34], esp
call fcn.0045eec0
mov byte [esp + 0x40], 1
call fcn.0045eee0
add esp, 0x24
mov esi, eax
mov byte [esp + 0x1c], 0
call fcn.004026a0
lea edi, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004026a0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x464280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f41f1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x52f4a8]
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.00464a80
sub esp, 0xc
mov byte [esp + 0x48], 4
lea edx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004645a0
sub esp, 8
lea ecx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x48], esp
push ecx
mov byte [esp + 0x58], 5
call fcn.004645a0
add esp, 4
push esi
mov byte [esp + 0x58], 3
call fcn.004645d0
add esp, 0x34
lea edi, [esp + 0x30]
mov dword [esp + 0x10], 1
mov byte [esp + 0x24], 2
call fcn.004026a0
lea edi, [esp + 0x3c]
mov byte [esp + 0x24], 1
call fcn.004026a0
lea edi, [esp + 0x48]
mov byte [esp + 0x24], 0
call fcn.004026a0
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 0x464370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f41f1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x52f4a8]
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.00464a80
sub esp, 0xc
mov byte [esp + 0x48], 4
lea edx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004645a0
sub esp, 8
lea ecx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x48], esp
push ecx
mov byte [esp + 0x58], 5
call fcn.004645a0
add esp, 4
push esi
mov byte [esp + 0x58], 3
call fcn.00464700
add esp, 0x34
lea edi, [esp + 0x30]
mov dword [esp + 0x10], 1
mov byte [esp + 0x24], 2
call fcn.004026a0
lea edi, [esp + 0x3c]
mov byte [esp + 0x24], 1
call fcn.004026a0
lea edi, [esp + 0x48]
mov byte [esp + 0x24], 0
call fcn.004026a0
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 0x466080
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f53c0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x52f4a8]
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 0x46a9e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46a9e5
sub eax, edx
push edi
mov edi, eax
xor ecx, ecx
test edi, edi
jle 0x46aa1c
jmp 0x46aa00
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 0x46aa00
pop edi
ret
Function at 0x46aa20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x4f4058
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x52f4a8]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52f4a8]
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 0x50d1b0
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 0x46aac4
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00406080
mov byte [esp + 0x1b4], bl
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x14], edi
jb 0x46aab7
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00476980
add esp, 4
mov dword [esp + 0x58], 0xf
jmp 0x46ac60
mov eax, 3
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov al, 0x62
mov cl, 0x63
mov byte [esp + 0x195], al
mov byte [esp + 0x196], al
mov al, 0x64
mov byte [esp + 0x1a0], bl
mov edi, 4
lea ebx, [esp + 0x1c]
lea esi, [esp + 0x190]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 2
mov byte [esp + 0x190], 0x72
mov byte [esp + 0x191], 0x70
mov byte [esp + 0x192], 0x36
mov byte [esp + 0x193], cl
mov byte [esp + 0x194], 0x67
mov byte [esp + 0x197], al
mov byte [esp + 0x198], al
mov byte [esp + 0x199], 0x30
mov byte [esp + 0x19a], 0x37
mov byte [esp + 0x19b], 0x31
mov byte [esp + 0x19c], al
mov byte [esp + 0x19d], cl
mov byte [esp + 0x19e], 0x61
mov byte [esp + 0x19f], 0x66
call fcn.0046a9e0
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.0046ebb0
mov eax, edi
push eax
mov edx, ebp
lea ecx, [esp + 0x20]
call fcn.0046fc70
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 0x46ac10
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00476980
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.00406080
mov byte [esp + 0x1b4], bl
mov dword [esp + 0x14], 1
cmp dword [esp + 0x58], edi
jb 0x46ac5c
mov eax, dword [esp + 0x44]
push eax
call fcn.00476980
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.00476680
add esp, 0x1a4
ret
Function at 0x46c050
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 0x46c087
pop esi
xor al, al
pop ebx
pop ecx
ret 4
push ebp
call fcn.0046c350
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 0x46c0ea
mov dword [esi + 8], 0xffffffff
cmp dword [esi + 0xc], 0
jne 0x46c104
cmp dword [esp + 8], 0xc8
jne 0x46c104
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 0x46ee20
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 0x46ee6e
nop
mov ebx, ecx
and ebx, 0x80000003
jns 0x46ee4f
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 0x46ee40
lea ebp, [esi + 4]
mov eax, ebp
lea ecx, [esi + 0x3d]
mov edi, 4
jmp 0x46ee80
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 0x46ee80
mov eax, dword [esi + 0x18]
lea ebx, [edi + 1]
dec eax
cmp eax, ebx
jl 0x46eefe
lea edi, [esi + 0x4e]
mov eax, esi
call fcn.0046f110
push esi
call fcn.0046f1b0
push esi
call fcn.0046f350
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 0x46eed0
mov eax, dword [esi + 0x18]
inc ebx
dec eax
cmp ebx, eax
mov edi, ecx
jle 0x46eeb1
mov eax, esi
call fcn.0046f110
push esi
call fcn.0046f1b0
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 0x46ef20
mov eax, dword [esi + 0x10]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x46ef82
mov edi, ecx
and edi, 0x80000003
jns 0x46ef5f
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 0x46ef50
pop edi
pop ebp
pop ebx
ret 4
Function at 0x46ef90
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 0x46efe0
mov ebx, ecx
and ebx, 0x80000003
jns 0x46efc1
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 0x46efb2
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 0x46eff4
mov eax, dword [edi + 0x18]
dec eax
cmp eax, 1
jl 0x46f083
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.0046f280
mov eax, edi
call fcn.0046f160
mov eax, ebx
mov ecx, ebp
mov esi, 4
jmp 0x46f050
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 0x46f050
call fcn.0046f480
sub ebp, 0x10
sub dword [esp + 0x10], 1
jne 0x46f030
pop ebp
push edi
call fcn.0046f280
mov eax, edi
call fcn.0046f160
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 0x46f0a0
mov eax, dword [edi + 0x10]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x46f102
mov esi, ecx
and esi, 0x80000003
jns 0x46f0df
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 0x46f0d0
pop edi
pop esi
pop ebx
pop ecx
ret 4

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

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

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

Disassembly:
cmp ecx, dword [0x52f4a8]
jne 0x47668a
repz ret
jmp fcn.004882f0

Function at 0x4790c0
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 0x4790df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4790e6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4790fd
mov ecx, dword [ebp - 4]
push ecx
call fcn.00481f30
add esp, 4
or eax, 0xffffffff
jmp 0x4790ff
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4b62fd
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
jne 0x4b6339
push 1
push 0x14
call fcn.004b7acc
add esp, 8
mov dword [ebp - 4], eax
push 0x14
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00488970
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 0x4b633f
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 0x4b6379
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call fcn.004b7aa2
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 0x4b63b9
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, 0x10
push eax
call fcn.004b7acc
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 0x4b6512
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 0x4b652b
cmp dword [ebp + 0xc], 0
jne 0x4b652f
xor eax, eax
jmp 0x4b659c
call fcn.004b65a0
test eax, eax
jne 0x4b653d
or eax, 0xffffffff
jmp 0x4b659c
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8004
mov ecx, dword [0x5383b4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4b6599
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 0x4b658f
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x6801
mov ecx, dword [0x5383b4]
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 0x4b65a0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5383b4], 0
je 0x4b65b3
mov eax, 1
jmp 0x4b65f0
push 0
push 1
push 0x5309c4
push 0
push 0x5383b4
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4b65eb
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x5383b4
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4b65eb
xor eax, eax
jmp 0x4b65f0
mov eax, 1
pop ebp
ret
Function at 0x4c80ad
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.004c8155
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x4c8112
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 0x4c8104
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp edx, 3
jge 0x4c8104
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
test ecx, ecx
jne 0x4c80cf
mov edx, dword [ebp - 0xc]
push edx
call fcn.004b7aa2
add esp, 4
jmp 0x4c8147
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 0x4c8147
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp ecx, 3
jge 0x4c8147
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
test eax, eax
jne 0x4c8112
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xa
mov esp, ebp
pop ebp
ret

Function at 0x4c8229
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.004c8155
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c826e
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.004b7aa2
add esp, 4
jmp 0x4c8283
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