joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
sub esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xdcdace03
jmp 0x403ee0
mov dword [ebp - 0x18], 0xbfc753d9
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x18]
cmp eax, 0x570365c9
jg 0x403f10
cmp eax, 0x15d5a482
jg 0x403f20
cmp eax, 0xbfc753d8
jg 0x403f37
cmp eax, 0x8ff39457
jne 0x403ee0
mov dword [ebp - 0x18], 0xbfc753d9
jmp 0x403ee0
cmp eax, 0x570365ca
jne 0x403ee0
jmp 0x403ed1
cmp eax, 0x15d5a483
jne 0x403ee0
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x18], 0x570365ca
jmp 0x403ee0
cmp eax, 0xd829e594
jg 0x403f54
cmp eax, 0xbfc753d9
jne 0x403ee0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xd829e595
jmp 0x403ee0
cmp eax, 0xd968c667
je 0x403f7a
cmp eax, 0xdcdace03
jne 0x403f8d
mov eax, 0x15d5a483
cmp dword [ebp - 8], 0
je 0x403f72
mov eax, 0xd968c667
mov dword [ebp - 0x18], eax
jmp 0x403ee0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0x570365ca
jmp 0x403ee0
cmp eax, 0xd829e595
jne 0x403ee0
mov eax, dword [ebp - 4]
add esp, 0x20
pop ebp
ret

Function at 0x403fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x490cc607
jmp 0x403fe0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0x86154f3a
nop
mov eax, dword [ebp - 0x14]
cmp eax, 0x3fd65810
jg 0x404000
cmp eax, 0x86154f3a
jne 0x403fe0
jmp 0x40403a
cmp eax, 0x3fd65811
je 0x403fd1
cmp eax, 0x7bd54b84
jne 0x40401e
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], 0x86154f3a
jmp 0x403fe0
cmp eax, 0x490cc607
jne 0x403fe0
mov eax, 0x7bd54b84
cmp dword [ebp - 4], 0
je 0x404035
mov eax, 0x3fd65811
mov dword [ebp - 0x14], eax
jmp 0x403fe0
mov eax, dword [ebp - 8]
add esp, 0x1c
pop ebp
ret
Function at 0x405180
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x134
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [esp], eax
call fcn.00404470
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0x2e52656c
lea esi, [ebp - 0x125]
mov edi, 0x81f8579a
jmp 0x4051e0
mov dword [ebp - 0x130], 0xc5bd7883
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x130]
cmp eax, 0x7b1e4a09
jg 0x4052d0
cmp eax, 0xc5bd7882
jg 0x4052e0
cmp eax, 0xb3c2e19a
jne 0x4051e0
mov dword [esp], esi
mov dword [esp + 8], 0x105
mov dword [esp + 4], 0
call fcn.00403af0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00403af0
mov dword [esp], esi
mov dword [esp + 4], 0x105
call fcn.00404670
mov dword [esp], esi
call fcn.00404470
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00404050
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add edx, edi
sub edx, ecx
add edx, 0x7e07a866
add ecx, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.00404050
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 8
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], 0x2e52656c
jmp 0x4051e0
cmp eax, 0x7b1e4a0a
jne 0x4051e0
jmp 0x4051d1
cmp eax, 0x641b636
jg 0x4052f4
cmp eax, 0xc5bd7883
jne 0x4051e0
jmp 0x405349
cmp eax, 0x641b637
je 0x405311
cmp eax, 0x2dedc412
jne 0x405320
mov dword [ebp - 0x130], 0x7b1e4a0a
jmp 0x4051e0
mov dword [ebp - 0x130], 0x7b1e4a0a
jmp 0x4051e0
cmp eax, 0x2e52656c
jne 0x4051e0
mov eax, 0xb3c2e19a
cmp dword [ebp - 0x12c], 0
je 0x40533e
mov eax, 0x2dedc412
mov dword [ebp - 0x130], eax
jmp 0x4051e0
add esp, 0x134
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4090f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], 0x54d7a77a
jmp 0x409130
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], 0x67801442
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x14]
cmp eax, 0x9e76d559
jg 0x409150
cmp eax, 0x8afcb5a1
jne 0x409130
jmp 0x409104
cmp eax, 0xb36b2234
jg 0x409170
cmp eax, 0x9e76d55a
jne 0x409130
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0xe94e3d8f
jmp 0x409130
cmp eax, 0x79a011fe
jg 0x409199
cmp eax, 0x67801441
jg 0x409205
cmp eax, 0xb980294d
jg 0x40921c
cmp eax, 0xb36b2235
jne 0x409130
jmp 0x409374
cmp eax, 0x79a011ff
jne 0x409130
mov eax, 4
call fcn.00415e20
mov ecx, esp
mov eax, 4
call fcn.00415e20
mov edi, esp
mov dword [ecx], esi
mov dword [edi], 0
mov eax, dword [ecx]
lea ecx, [eax + 0x2c]
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x408e20
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00416d93
add esp, 0x18
mov dword [edi], eax
mov dword [ebp - 0x14], 0xb980294e
jmp 0x409130
cmp eax, 0x67801442
jne 0x409130
mov dword [ebp - 0x14], 0xe94e3d8f
jmp 0x409130
cmp eax, 0xbf31e51d
jg 0x4092a8
cmp eax, 0xb980294e
jne 0x409130
mov eax, 4
call fcn.00415e20
mov ecx, esp
mov eax, 4
call fcn.00415e20
mov dword [ebp - 0x10], esp
mov dword [ecx], esi
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
lea ecx, [eax + 0x2c]
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x408e20
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00416d93
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
sete byte [ebp - 0xa]
mov dword [ebp - 0x14], 0xdb5a1b8b
jmp 0x409130
cmp eax, 0xdb5a1b8a
jg 0x4092d7
cmp eax, 0xbf31e51e
jne 0x409130
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0xb36b2235
jmp 0x409130
cmp eax, 0xe94e3d8e
jg 0x409302
cmp eax, 0xdb5a1b8b
jne 0x409130
mov al, byte [ebp - 0xa]
test al, al
mov eax, 0x59c5b134
jne 0x4092fa
mov eax, 0x8afcb5a1
mov dword [ebp - 0x14], eax
jmp 0x409130
cmp eax, 0xf358408
jg 0x40932a
cmp eax, 0xe94e3d8f
jne 0x409130
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
setne byte [ebp - 9]
mov dword [ebp - 0x14], 0xf358409
jmp 0x409130
cmp eax, 0xf358409
je 0x409344
cmp eax, 0x54d7a77a
jne 0x40935d
mov dword [ebp - 0x14], 0xb980294e
jmp 0x409130
mov al, byte [ebp - 9]
test al, al
mov eax, 0xbf31e51e
jne 0x409355
mov eax, 0xb36b2235
mov dword [ebp - 0x14], eax
jmp 0x409130
cmp eax, 0x59c5b134
jne 0x409130
mov dword [ebp - 0x14], 0x67801442
jmp 0x409130
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x41e84a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d03e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041b6a3
mov dword [ebp - 0x14], eax
cmp dword [0x4d1c7c], edi
jne 0x41e93b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41e8c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41ea1b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41ea1b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ea1b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4d1c7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4d1c80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4d1c84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d1c8c], eax
test eax, eax
je 0x41e938
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d1c88], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41e960
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41e953
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41e975
push 4
pop eax
jmp 0x41ea1d
cmp dword [ebp - 0x14], edi
je 0x41e975
push dword [0x4d1c7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41e95a
mov eax, dword [0x4d1c88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41e9d3
cmp dword [0x4d1c8c], esi
je 0x41e9d3
push eax
call ebx
push dword [0x4d1c8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41e9d3
test eax, eax
je 0x41e9d3
call ecx
test eax, eax
je 0x41e9c8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41e9c8
test byte [ebp - 8], 1
jne 0x41e9d3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41ea03
mov eax, dword [0x4d1c80]
cmp eax, esi
je 0x41ea00
push eax
call ebx
test eax, eax
je 0x41ea00
call eax
mov edi, eax
test edi, edi
je 0x41ea00
mov eax, dword [0x4d1c84]
cmp eax, esi
je 0x41ea00
push eax
call ebx
test eax, eax
je 0x41ea00
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4d1c7c]
call ebx
test eax, eax
je 0x41ea1b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41ea1d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004187a9
leave
ret
Function at 0x409593
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x260]
mov esi, ecx
push 0x27f4
push eax
call fcn.00403449
mov ecx, eax
call fcn.0041aa54
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0043cc90
add esp, 0xc
push 0x3ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov edi, eax
test edi, edi
je 0x409657
push edi
call ebx
test eax, eax
je 0x409657
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409657
xor eax, eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x218]
push eax
call fcn.0043ef4e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x240]
call fcn.0040206a
jmp 0x409677
push edi
call ebx
test eax, eax
je 0x409677
cmp dword [esi + 0x254], 8
lea eax, [esi + 0x240]
jb 0x40966f
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0x240]
mov edx, edi
lea ecx, [ebp - 0x230]
call fcn.0040336e
push eax
mov ecx, edi
call fcn.004023e5
lea ecx, [ebp - 0x230]
call fcn.0040203f
mov edx, str.__DSPT
mov ecx, edi
call fcn.0040c210
cmp byte [esi + 0x80], 0
je 0x409797
cmp dword [esi + 0x78], 0
je 0x409797
lea ecx, [esi + 0x68]
mov edx, edi
call fcn.0040bfd0
test al, al
jne 0x409797
lea ecx, [ebp - 0x280]
call fcn.004051c0
lea eax, [esi + 0x2c4]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040241c
lea ecx, [ebp - 0x248]
call fcn.0040c2d0
push 0x25
push 0x3a
pop edx
lea ecx, [ebp - 0x248]
call fcn.0040c140
add esp, 4
push 0x25
push 0x5c
pop edx
call fcn.0040c140
add esp, 4
lea ecx, [ebp - 0x230]
mov esi, 0x45a5e0
push esi
call fcn.00401fbc
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.00405274
lea ecx, [ebp - 0x230]
mov bl, al
call fcn.0040203f
test bl, bl
je 0x409781
push esi
lea ecx, [ebp - 0x230]
call fcn.00401fbc
push edi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.004053c9
lea ecx, [ebp - 0x230]
call fcn.0040203f
lea ecx, [ebp - 0x248]
call fcn.0040203f
lea ecx, [ebp - 0x280]
call fcn.00405264
lea ecx, [ebp - 0x260]
call fcn.0040203f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043af96
leave
ret
Function at 0x438bec
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x438c22
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x438c15
cmp esi, ecx
jae 0x438d05
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x438c9b
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x45a2f8]
xor ecx, eax
or ecx, edx
jmp 0x438ceb
cmp edi, 6
jbe 0x438ceb
cmp edx, 4
jne 0x438ceb
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x438c34
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x439b1e
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
push ecx
lea esi, [edi + 4]
mov ecx, esi
call fcn.0040846d
test al, al
je 0x439b36
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.0043b1a7
pop ecx
push edi
push 0x439acf
mov ecx, eax
call fcn.00415a70
push eax
mov ecx, esi
call fcn.004084a6
mov ecx, esi
call fcn.00408402
pop edi
mov ecx, eax
pop esi
jmp fcn.00415c10
Function at 0x412fe3
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 0x4130c5
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x413060
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x4130b0
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 0x4130cf
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 0x4130b0
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00412fcb
test eax, eax
je 0x4130cf
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 0x4130cf
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 0x413010
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x4130c8
Function at 0x4157ba
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, 0x43c
mov eax, dword [0x4276dc]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0x43c], 0x20
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
mov byte [ebp - 0x2c], 0xc
mov byte [ebp - 0x2b], 0xa4
mov byte [ebp - 0x2a], 0x9e
mov byte [ebp - 0x29], 0xda
mov byte [ebp - 0x28], 0x74
mov byte [ebp - 0x27], 0xe4
mov byte [ebp - 0x26], 7
mov byte [ebp - 0x25], 0x9e
mov byte [ebp - 0x24], 0xdb
mov byte [ebp - 0x23], 0xa1
mov byte [ebp - 0x22], 0x2b
mov byte [ebp - 0x21], 0x38
mov byte [ebp - 0x20], 0x94
mov byte [ebp - 0x1f], 0x3c
mov byte [ebp - 0x1e], 0x26
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0xe3
mov byte [ebp - 0x1b], 0x8c
mov byte [ebp - 0x1a], 0x2c
mov byte [ebp - 0x19], 0x68
mov byte [ebp - 0x18], 0xf5
mov byte [ebp - 0x17], 0xc6
mov byte [ebp - 0x16], 0x23
mov byte [ebp - 0x15], 0xb9
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0xa4
mov byte [ebp - 0x12], 0x82
mov byte [ebp - 0x11], 0x8a
mov byte [ebp - 0x10], 0xc8
mov byte [ebp - 0xf], 0x33
mov byte [ebp - 0xe], 0x3b
mov byte [ebp - 0xd], 0xb1
mov byte [ebp - 0xc], 0x98
mov byte [ebp - 0xb], 0xb8
mov byte [ebp - 0xa], 0x86
mov byte [ebp - 9], 0xcc
mov byte [ebp - 8], 0x33
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x415981
push ebx
push edi
lea eax, [ebp - 0x430]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4158bd
xor edi, edi
jmp 0x415970
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x25
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x430]
call edi
test eax, eax
jne 0x4158dd
xor edi, edi
jmp 0x415964
push 0x403434
push dword [ebp + 8]
mov dword [ebp - 0x438], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x415944
push ebx
push 0x400
lea eax, [ebp - 0x42c]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x41593c
add dword [ebp - 0x438], eax
push esi
push eax
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x430]
call edi
test eax, eax
je 0x41598e
cmp dword [ebp - 0x438], 0x1400
jb 0x4158f9
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x43c]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x415964
inc edi
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.00416475
leave
ret 8
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x41597f
Function at 0x4159b3
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 [0x4276dc]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x403440
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 0x415a9f
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 0x415a93
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 0x415a42
xor edi, edi
jmp 0x415a8a
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 0x415a3e
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x415a6a
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 0x415a3e
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.00416475
leave
ret 8
Function at 0x416475
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4276dc]
jne 0x41647e
ret
jmp 0x416483
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4276dc]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x429974]
test eax, eax
je 0x4164a7
call eax
cmp dword [0x429978], 0
je 0x4164ee
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x429978]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.00416475
add ebp, 0x2a8
leave
ret