joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004beb
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, 0xea60
mov esi, eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
mov dword [ebp - 0xc], eax
inc eax
push eax
xor edi, edi
push edi
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10004c3d
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
je 0x10004c3d
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
push 0x10000000
push edi
push edi
push edi
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0xc], eax
cmp eax, edi
je 0x10004cf5
push 0x10004b64
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
je 0x10004cf5
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push edi
push 3
push edi
push edi
push 0x50
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x10], eax
cmp eax, edi
jne 0x10004cac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10004cf5
mov eax, dword [esi + 0x18]
push ebx
call fcn.10004a41
test eax, eax
jne 0x10004cf5
push esi
push 0x84404000
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x14], eax
cmp eax, edi
je 0x10004cf5
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [ebp - 8]
push ecx
push 6
push eax
call ebx
test eax, eax
je 0x10004cf5
push 4
lea eax, [ebp - 8]
push eax
push 5
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x10004cf5
xor esi, esi
jmp 0x10004cfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 4], edi
je 0x10004d12
push dword [ebp - 4]
push edi
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10004e53
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [esi + 0x18]
push ebx
push edi
xor ebx, ebx
push 0xea60
mov dword [ebp - 8], ebx
call fcn.10004a41
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10005003
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10004ffa
cmp dword [esi], ebx
jne 0x10004ffa
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
mov dword [ebp - 4], 8
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10004ffa
mov edi, 0x1000
push edi
push ebx
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10004ff1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x10]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10004f11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x3e5
jne 0x10004f2b
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
call fcn.10004a41
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10004f2b
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10004f2b
cmp dword [ebp - 8], ebx
je 0x10004f28
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ebx
push dword [ebp - 8]
push dword [ebp - 0x10]
push eax
call dword [ecx + 0x10]
jmp 0x10004ec8
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
push ebx
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], ebx
jne 0x10004ff1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push dword [esi + 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10004fea
cmp dword [ebp - 0x10], 0xc8
jne 0x10004fea
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x60]
push edx
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10004fe1
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
push ebx
push ebx
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
call dword [edi + 0x14]
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x10004fd8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ebx
push dword [ebp - 8]
push edi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov byte [edi + eax], bl
mov eax, dword [ebp - 8]
mov dword [esi], edi
mov dword [esi + 0x24], eax
jmp 0x10004ff1
mov dword [ebp - 4], 8
jmp 0x10004ff1
mov dword [ebp - 4], 0x10d2
jmp 0x10004ff1
mov dword [ebp - 4], 0xe8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x10008bc0
Capabilities:
Decompress data using aplib

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov al, byte [esi]
push edi
xor ebx, ebx
mov byte [ecx], al
add ecx, 1
xor edi, edi
add esi, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
lea ecx, [ecx]
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x10008c06
movzx edx, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
je 0x10008dc3
mov eax, ebx
sub ebx, 1
test eax, eax
mov dword [esp + 0x20], ebx
jne 0x10008c38
movzx edx, byte [esi]
add esi, 1
mov ebx, 7
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
mov dword [esp + 0x1c], edx
je 0x10008d08
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x10008c64
movzx edx, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
je 0x10008cb6
xor edi, edi
lea ebp, [edi + 4]
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x10008c89
movzx edx, byte [esi]
add esi, 1
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
sub ebp, 1
lea edi, [eax + edi*2]
jne 0x10008c77
test edi, edi
mov dword [esp + 0x14], esi
je 0x10008cae
mov eax, ecx
sub eax, edi
mov al, byte [eax]
jmp 0x10008dcc
mov byte [ecx], 0
jmp 0x10008dce
movzx ebp, byte [esi]
mov edi, ebp
and edi, 1
add esi, 1
add edi, 2
shr ebp, 1
mov dword [esp + 0x14], esi
je 0x10008cf2
test edi, edi
je 0x10008cfa
mov eax, ecx
sub eax, ebp
mov al, byte [eax]
mov byte [ecx], al
add ecx, 1
sub edi, 1
jne 0x10008cd0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebp
mov edi, 1
jmp 0x10008dd7
mov dword [esp + 0x10], 1
mov dword [esp + 0x28], ebp
mov edi, 1
jmp 0x10008dd7
lea ecx, [esp + 0x14]
call fcn.10008b40
test edi, edi
jne 0x10008d4e
cmp eax, 2
jne 0x10008d49
lea ecx, [esp + 0x14]
call fcn.10008b40
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x10008db0
nop
mov edx, ecx
sub edx, dword [esp + 0x28]
add ecx, 1
sub eax, 1
mov dl, byte [edx]
mov byte [ecx - 1], dl
jne 0x10008d30
mov dword [esp + 0x18], ecx
jmp 0x10008db0
sub eax, 3
jmp 0x10008d51
sub eax, 2
mov ecx, dword [esp + 0x14]
movzx edx, byte [ecx]
add ecx, 1
shl eax, 8
add eax, edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.10008b40
cmp esi, 0x7d00
jb 0x10008d7a
add eax, 1
cmp esi, 0x500
jb 0x10008d85
add eax, 1
cmp esi, 0x80
jae 0x10008d90
add eax, 2
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x10008dac
mov edx, ecx
sub edx, esi
mov dl, byte [edx]
mov byte [ecx], dl
add ecx, 1
sub eax, 1
jne 0x10008d98
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], esi
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edi, 1
jmp 0x10008dd7
mov al, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
mov byte [ecx], al
add ecx, 1
xor edi, edi
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x10], 0
je 0x10008bf0
pop edi
pop esi
mov eax, ecx
sub eax, dword [esp + 0x24]
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x4044c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40451b
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x405b2c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40450e
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40451d
xor eax, eax
pop esi
leave
ret 4
Function at 0x10039d00
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10039d43
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x10039d3e
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
dec ebp
or byte [edi], cl
mov bh, 9
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10039d28
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10039d30
cmp edx, ebx
jne 0x10039e7e
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10039cff
add eax, dword [eax + 4]
jmp 0x10039cec
mov dword [ebp + 0xc], ebx
jmp 0x10039d4e
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10039d66
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10039d84
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10039de2
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10039dc9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10039dd2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10039ddc
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10039dbe
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10039d48
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10039e2f
dec eax
je 0x10039e26
sub eax, 3
je 0x10039e1d
mov dword [ebp - 4], 0x40
jmp 0x10039e4c
mov dword [ebp - 4], 4
jmp 0x10039e32
mov dword [ebp - 4], 0x20
jmp 0x10039e32
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10039e7e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10039dfe
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1003968f
mov ah, 0x72
cmpsb byte [esi], byte es:[edi]
cld
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x10039e8a
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10039f40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.1003969f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10039654
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.1003969f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10039654
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.1003968f
cmpsd dword [esi], dword es:[edi]
leave
leave
add al, byte [eax - 0x5335b]
inc dword [eax]
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
sti
Function at 0x1003a350
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1003a383
cmp dword [ebp - 0x398], 0
je 0x1003a54d
cmp dword [ebp + 0xc], 1
je 0x1003a54d
cmp dword [ebp + 0xc], 8
jne 0x1003a515
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
dec edi
stc
invalid
call dword [eax]
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.1003969f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10039654
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
invalid
invalid
stc

Function at 0x1003a5e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [eax]
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
invalid
invalid
invalid
cld
invalid
Function at 0x406af6
Capabilities:
Delete file

Disassembly:
mov eax, 0x414651
call fcn.004143f0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x4c]
test eax, eax
mov dword [ebp - 4], 2
je 0x406973
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x406981
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 0x8c]
cmp dword [eax], 0
je 0x406994
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4069ad
push dword [eax + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4069bb
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi + 0x78]
test eax, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x4069cb
push eax
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4069d5
push eax
call ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4069e2
push eax
call ebx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4069ef
push eax
call ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
test eax, eax
je 0x406a06
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call ebx
mov ecx, esi
call fcn.00406878
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.00406817
lea ecx, [esi + 0x54]
call fcn.0041024b
lea ecx, [esi + 0x24]
call fcn.00405696
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push esi
mov esi, ecx
push 0x418994
mov dword [esi], 0x401704
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
pop esi
jmp 0x40694b

Function at 0x406ea7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4188e4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x406eeb
call ebx
test eax, eax
jns 0x406ee1
push 0x401778
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x40176c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4188e0], eax
mov dword [0x4188e4], 1
mov eax, dword [0x4188e0]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x406f07
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x406f37
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x406f2d
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x406f21
push dword [eax + 8]
call dword [eax]
jmp 0x406f27
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x406f36
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x407028
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 [0x418894]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x4017c8
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 0x407115
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 0x407109
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 0x4070b7
xor edi, edi
jmp 0x407100
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 0x4070b3
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4070b3
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
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.004140e9
leave
ret 8
Function at 0x407124
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, 0x430
mov eax, dword [0x418894]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x430], 0x20
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], esi
mov byte [ebp - 0x20], 0x69
mov byte [ebp - 0x1f], 0x93
mov byte [ebp - 0x1e], 0xaa
mov byte [ebp - 0x1d], 0x53
mov byte [ebp - 0x1c], 0xd2
mov byte [ebp - 0x1b], 0xac
mov byte [ebp - 0x1a], 0x68
mov byte [ebp - 0x19], 0xca
mov byte [ebp - 0x18], 0xc5
mov byte [ebp - 0x17], 0x47
mov byte [ebp - 0x16], 0x3f
mov byte [ebp - 0x15], 0xb5
mov byte [ebp - 0x14], 0xe5
mov byte [ebp - 0x13], 0xc0
mov byte [ebp - 0x12], 0xd5
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x79
mov byte [ebp - 0xf], 0x5f
mov byte [ebp - 0xe], 0x30
mov byte [ebp - 0xd], 0x46
mov byte [ebp - 0xc], 0x60
mov byte [ebp - 0xb], 0xec
mov byte [ebp - 0xa], 0xec
mov byte [ebp - 9], 0xd8
mov byte [ebp - 8], 0xe2
mov byte [ebp - 7], 0x73
mov byte [ebp - 6], 0x5b
mov byte [ebp - 5], 0x3c
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4072c7
push ebx
push edi
lea eax, [ebp - 0x424]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x407203
xor edi, edi
jmp 0x4072b6
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x1c
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x424]
call edi
test eax, eax
jne 0x407223
xor edi, edi
jmp 0x4072aa
push 0x401834
push dword [ebp + 8]
mov dword [ebp - 0x42c], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x40728a
push ebx
push 0x400
lea eax, [ebp - 0x420]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x407282
add dword [ebp - 0x42c], eax
push esi
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call edi
test eax, eax
je 0x4072d4
cmp dword [ebp - 0x42c], 0x4400
jb 0x40723f
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x430]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x4072aa
inc edi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.004140e9
leave
ret 8
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x4072c5