joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52ced0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00481a50
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x52cf1f
mov eax, 1
mov dword [esi], ebx
jmp 0x52cf21
mov ebx, dword [esi]
test ecx, ecx
je 0x52cfe0
mov edi, dword [ebx + 0x40]
cmp edi, 0x80
jle 0x52cf48
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call fcn.004dc460
add esp, 0xc
mov ebp, dword [esp + 0xa8]
cmp edi, ebp
jge 0x52cf81
mov ecx, dword [esp + 0x10]
push ecx
lea edi, [esi + 4]
push ebx
push edi
call fcn.004e2020
mov edx, dword [esp + 0x20]
push ebp
push edx
push edi
call fcn.004e2140
lea ebp, [esi + 0x34]
push ebp
lea eax, [esi + 0x38]
push eax
push edi
call fcn.004e2150
add esp, 0x24
jmp 0x52cfbc
cmp ebp, 0x80
jbe 0x52cf9d
push str.len_0__len__int_sizeof_ctx__key_
push 0x5c
push str..cryptohmachmac.c
call fcn.004dc460
add esp, 0xc
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esi + 0x38]
push edx
call fcn.00481e40
mov eax, dword [esp + 0xb4]
lea ebp, [esi + 0x34]
add esp, 0xc
mov dword [ebp], eax
mov ebp, dword [ebp]
cmp ebp, 0x80
je 0x52cfe4
mov ecx, 0x80
sub ecx, ebp
push ecx
lea edx, [esi + ebp + 0x38]
push 0
push edx
call fcn.004804c0
add esp, 0xc
jmp 0x52cfe4
test eax, eax
je 0x52d060
xor eax, eax
jmp 0x52cff0
mov cl, byte [esi + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x52cff0
mov ebp, dword [esp + 0x10]
push ebp
lea edi, [esi + 0x14]
push ebx
push edi
call fcn.004e2020
mov edx, dword [ebx + 0x40]
push edx
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004e2140
add esp, 0x18
xor eax, eax
jmp 0x52d030
mov cl, byte [esi + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x52d030
push ebp
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.004e2020
mov edx, dword [ebx + 0x40]
push edx
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004e2140
add esp, 0x18
lea ecx, [esi + 0x14]
push ecx
add esi, 4
push esi
call fcn.004e2240
mov ecx, dword [esp + 0xa0]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047ff9f
add esp, 0x8c
ret
Function at 0x52f7f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x52f809
mov edi, ebx
mov ebx, eax
jmp 0x52f80b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x52f821
push eax
push esi
call fcn.004d54e0
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x52f83d
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x52f828
cmp eax, dword [edi + 4]
jge 0x52f852
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x52f842
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x52f876
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x52f876
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x52f865
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x537135
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x53e1f2
call fcn.00480017
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x537247
cmp byte [esi + 0x42], bl
je 0x537247
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x537171
xor al, al
jmp 0x537249
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040fce0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fe30
mov ecx, eax
call fcn.00410b60
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fe30
mov ecx, eax
call fcn.00410b60
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x5371e1
dec eax
je 0x5371e5
dec eax
dec eax
je 0x537243
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406d10
mov al, bl
jmp 0x537249
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fe30
mov ecx, eax
call fcn.00410b60
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x537225
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fe30
mov ecx, eax
call fcn.00410b60
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0048030d
add esp, 0x10
cmp edi, eax
jne 0x5371cf
cmp byte [esi + 0x42], 0
je 0x537243
test edi, edi
jne 0x53717f
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a0a0
jmp 0x53717f
mov bl, 1
jmp 0x5371d1
mov al, 1
call fcn.0048009a
ret
Function at 0x5372f0
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x53e260
call fcn.00480017
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x53731a
lea eax, [ebp + 8]
push eax
call fcn.00401060
pop ecx
jmp 0x537495
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x537348
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x537348
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x537495
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x537490
cmp dword [esi + 0x3c], ebx
jne 0x537371
push eax
push edi
call fcn.00536ab4
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x537495
jmp 0x537490
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.0040fce0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040fe30
mov ecx, eax
call fcn.00410b60
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fe30
mov ecx, eax
call fcn.00410b60
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x537462
cmp eax, 1
jg 0x53749d
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fe30
mov ecx, eax
call fcn.00410b60
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x537407
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fe30
mov ecx, eax
call fcn.00410b60
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0048030d
add esp, 0x10
cmp edi, eax
jne 0x537484
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x5374cd
test edi, edi
ja 0x53742d
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x537489
push 8
call fcn.0040a0a0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fe30
mov ecx, eax
call fcn.00410b60
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fe30
mov ecx, eax
call fcn.00410b60
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x5373be
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.00406d10
mov eax, 0xffff
call fcn.0048009a
ret 4
cmp eax, 3
jne 0x537484
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.00536ab4
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x5374bc
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406d10
mov ax, si
jmp 0x537495
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406d10
mov ax, word [ebp + 8]
jmp 0x537495
Function at 0x402330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402349
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402384
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402380
lea ebx, [ebx]
cmp esi, edx
jae 0x402384
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402370
cmp esi, edx
jb 0x40238b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x41c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
mov dword [ebp - 0x58], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40248c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040476a
mov esp, ebp
pop ebp
ret 8
push 0x30
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0xaac56b
movdqu xmmword [ebp - 0x24], xmm0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], 0x10
push 0
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x11d0cd44
mov dword [ebp - 0xc], 0xc000c28c
mov dword [ebp - 8], 0xee95c24f
call fcn.004051d0
add esp, 0xc
mov dword [ebp - 0x54], 0x30
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x48], 2
push eax
push 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
cmp dword [ecx + 0xc], 0
je 0x402543
push ebx
push esi
call fcn.00402ea0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x38], 2
push eax
lea eax, [ebp - 0x14]
push eax
push 0
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x5c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040476a
mov esp, ebp
pop ebp
ret 8
Function at 0x4028f0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41c018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push edi
mov edi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x402995
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402995
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402995
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x402995
movdqu xmm0, xmmword [ebp - 0x24]
push dword [ebp - 0x28]
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ebp - 0x14]
movdqu xmmword [esi + 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040476a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4029b0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8038
call fcn.00410460
mov eax, dword [0x41c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
mov dword [ebp - 0x8038], eax
lea eax, [ebp - 0x802c]
push 0
push eax
mov dword [ebp - 0x802c], 0
mov dword [ebp - 0x8028], 0
mov dword [ebp - 0x8034], 0x20
mov dword [ebp - 0x8030], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x402adc
lea eax, [ebp - 0x8028]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x802c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x402a5a
push eax
push dword [ebp - 0x802c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040476a
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x8030]
push 0
push eax
push 0x1400
lea eax, [ebp - 0x8024]
push eax
push esi
call edi
test eax, eax
je 0x402ac0
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [ebp - 0x8030]
test ecx, ecx
je 0x402aed
push 0
push ecx
lea eax, [ebp - 0x8024]
push eax
push dword [ebp - 0x8028]
call ebx
push 0
test eax, eax
je 0x402ac2
lea eax, [ebp - 0x8030]
push eax
push 0x1400
lea eax, [ebp - 0x8024]
push eax
push esi
call edi
test eax, eax
jne 0x402a84
push 0
push dword [ebp - 0x802c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x8028]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040476a
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x402ac0
push 0
lea eax, [ebp - 0x8034]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push dword [ebp - 0x8028]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x8028]
test eax, eax
je 0x402b2f
mov eax, dword [ebp - 0x8038]
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [ebp - 0x14]
movdqu xmmword [eax + 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x802c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0040476a
mov esp, ebp
pop ebp
ret 8
Function at 0x402b60
Capabilities:
Create new key via cryptacquirecontext
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, 0x38
mov eax, dword [0x41c018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push edi
mov edi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [ebp - 0x38], 0x28
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x402c0f
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402c0f
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402c0f
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push 2
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x402c0f
movdqu xmm0, xmmword [ebp - 0x2c]
push dword [ebp - 0x30]
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ebp - 0x1c]
movdqu xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [esi + 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040476a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402c30
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x41c018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push edi
mov edi, dword [ebp + 8]
push 0xf0000000
push 0x18
push 0
push 0
push eax
mov dword [ebp - 0x50], 0x40
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x402ced
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402ced
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402ced
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
push 2
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x402ced
movdqu xmm0, xmmword [ebp - 0x44]
push dword [ebp - 0x48]
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ebp - 0x34]
movdqu xmmword [esi + 0x10], xmm0
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [esi + 0x20], xmm0
movdqu xmm0, xmmword [ebp - 0x14]
movdqu xmmword [esi + 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040476a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402d00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402d62
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040476a
mov esp, ebp
pop ebp
ret 0x10
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x1e00000
jbe 0x402d92
push esi
push ebx
call fcn.004029b0
pop edi
pop esi
mov al, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040476a
mov esp, ebp
pop ebp
ret 0x10
push edi
call fcn.004047b1
mov esi, eax
add esp, 4
test esi, esi
je 0x402dbd
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402dd2
push esi
call fcn.00404779
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040476a
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 0xc]
push edi
push esi
call fcn.004028f0
push dword [ebp - 0x10]
push edi
push esi
call fcn.00402b60
push dword [ebp - 0x14]
push edi
push esi
call fcn.00402c30
push esi
call fcn.00404779
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040476a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d5df
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c018]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040cc9d
mov dword [ebp - 0x14], eax
cmp dword [0x41e2c0], esi
jne 0x40d6d2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d65f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d7b2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d7b2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d7b2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41e2c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41e2c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41e2c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41e2d0], eax
test eax, eax
je 0x40d6cf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41e2cc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6f7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6ea
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d70c
push 4
pop eax
jmp 0x40d7b4
cmp dword [ebp - 0x14], esi
je 0x40d70c
push dword [0x41e2c0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6f1
mov eax, dword [0x41e2cc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d76a
cmp dword [0x41e2d0], edi
je 0x40d76a
push eax
call ebx
push dword [0x41e2d0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d76a
test eax, eax
je 0x40d76a
call ecx
test eax, eax
je 0x40d75f
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 0x40d75f
test byte [ebp - 8], 1
jne 0x40d76a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d79a
mov eax, dword [0x41e2c4]
cmp eax, edi
je 0x40d797
push eax
call ebx
test eax, eax
je 0x40d797
call eax
mov esi, eax
test esi, esi
je 0x40d797
mov eax, dword [0x41e2c8]
cmp eax, edi
je 0x40d797
push eax
call ebx
test eax, eax
je 0x40d797
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41e2c0]
call ebx
test eax, eax
je 0x40d7b2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d7b4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040476a
mov esp, ebp
pop ebp
ret