joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4166c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xcc
lea eax, [esp + 4]
push esi
push edi
mov edi, dword [esp + 0xd8]
xor esi, esi
push eax
push edi
call fcn.00416c10
add esp, 8
test eax, eax
je 0x416798
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xe0]
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x416798
lea eax, [esp + 0x70]
push eax
push dword [esp + 0xe4]
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x416798
push ebx
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41678c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x416785
test edi, edi
jle 0x416785
lea eax, [edi + 1]
push ebp
push eax
call sub.MSVCRT.dll_malloc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x416784
push esi
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416784
cmp dword [esp + 0x10], edi
jne 0x416784
push ebp
mov byte [edi + ebp], 0
call fcn.00416af0
add esp, 4
mov esi, eax
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xcc
ret
pop edi
mov eax, esi
pop esi
add esp, 0xcc
ret
Function at 0x416d60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov ecx, dword [esp + 4]
lea edx, [esp - 0x244]
sub esp, 0x244
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x416d73
push ebp
push esi
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x416d88
mov ax, word [0x42bba0]
lea ecx, [esp + 0xc]
mov word [edi], ax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416da2
sub ecx, edx
lea esi, [esp + 0xc]
add esi, ecx
mov eax, 0x2a
mov word [esi], ax
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x416ee5
mov edi, dword [esp + 0x25c]
lea eax, [esp + 0x13c]
push ebx
mov ebx, dword [esp + 0x25c]
sub esi, eax
nop
lea eax, [esp + 0x140]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x416df7
test byte [esp + 0x114], 0x10
je 0x416e8c
mov ecx, 0x42bba4
lea eax, [esp + 0x140]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x416e40
test dl, dl
je 0x416e3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x416e40
add eax, 2
add ecx, 2
test dl, dl
jne 0x416e20
xor eax, eax
jmp 0x416e45
sbb eax, eax
or eax, 1
test eax, eax
je 0x416e9f
mov ecx, 0x42b7ec
lea eax, [esp + 0x140]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x416e75
test dl, dl
je 0x416e71
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x416e75
add eax, 2
add ecx, 2
test dl, dl
jne 0x416e55
xor eax, eax
jmp 0x416e7a
sbb eax, eax
or eax, 1
test eax, eax
je 0x416e9f
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00416d60
jmp 0x416e98
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004166c0
add esp, 0xc
test eax, eax
jne 0x416ecc
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x416df0
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x244
ret
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x244
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x244
ret
Function at 0x41c1b0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push str.PureBasic_Console_Debugger__press_CtrlC_to_stop_program_
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 4]
push eax
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, 0x1f4
mov word [esp + 6], ax
push dword [esp + 4]
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0x42bb74
push 0x4000
push 0xfffffffffffffff6
call esi
push eax
call sub.MSVCRT.dll__open_osfhandle
add esp, 8
push eax
call sub.MSVCRT.dll__fdopen
push 0
push 4
push 0
push eax
mov dword [0x438cd4], eax
call sub.MSVCRT.dll_setvbuf
add esp, 0x18
push 0x42e5e0
push 0x4000
push 0xfffffffffffffff5
call esi
push eax
call sub.MSVCRT.dll__open_osfhandle
add esp, 8
push eax
call sub.MSVCRT.dll__fdopen
push 0
push 4
push 0
push eax
mov dword [0x438cd8], eax
call sub.MSVCRT.dll_setvbuf
add esp, 0x18
push 0x42e5e0
push 0x4000
push 0xfffffffffffffff4
call esi
push eax
call sub.MSVCRT.dll__open_osfhandle
add esp, 8
push eax
call sub.MSVCRT.dll__fdopen
push 0
push 4
push 0
push eax
mov dword [0x438cdc], eax
call sub.MSVCRT.dll_setvbuf
mov eax, dword [0x438cd8]
add esp, 0x18
mov dword [0x44780c], eax
call fcn.00419020
pop esi
add esp, 0x18
ret
Function at 0x422440
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
lea eax, [esp + 0x20]
push 0xf0000040
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x422490
push esi
lea eax, [esp + 4]
push eax
push 0x20
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
mov esi, eax
neg esi
push 0
push dword [esp + 0x28]
sbb esi, esi
not esi
call dword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
and esi, 1
pop esi
je 0x42250e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp], eax
call fcn.00420f00
mov dword [esp + 4], eax
xor ecx, ecx
mov eax, dword [0x43ad08]
mov dword [esp + 8], eax
mov eax, dword [0x436c70]
mov dword [esp + 0x10], eax
mov eax, dword [0x436c74]
mov dword [esp + 0x14], eax
mov eax, dword [0x436c78]
mov dword [esp + 0x18], eax
mov eax, dword [0x436c7c]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + ecx]
xor byte [esp + ecx + 1], al
movzx eax, byte [esp + ecx + 1]
xor byte [esp + ecx + 2], al
movzx eax, byte [esp + ecx + 2]
xor byte [esp + ecx + 3], al
movzx eax, byte [esp + ecx + 3]
xor byte [esp + ecx + 4], al
movzx eax, byte [esp + ecx + 4]
xor byte [esp + ecx + 5], al
movzx eax, byte [esp + ecx + 5]
xor byte [esp + ecx + 6], al
add ecx, 6
cmp ecx, 0x1e
jl 0x4224d1
lea eax, [esp + 0x34]
push eax
call fcn.00426215
push 0x20
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00426957
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004261af
add esp, 0x18
xor edx, edx
lea ecx, [ecx]
movzx ecx, byte [esp + edx + 0x24]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x43af30], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x25]
mov byte [edx*2 + 0x43af31], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x43af32], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x26]
mov byte [edx*2 + 0x43af33], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x43af34], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x27]
mov byte [edx*2 + 0x43af35], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x43af36], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x43af37], al
add edx, 4
cmp edx, 0x10
jl 0x422540
push 0x20
push 0x43afb4
lea eax, [esp + 8]
push eax
push 0x43ad48
call fcn.00428140
add esp, 0x9c
ret
Function at 0x422d20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
jle 0x422d79
mov ebp, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push dword [0x43ad1c]
call dword [sym.imp.WSOCK32.DLL_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x422d73
call ebp
cmp eax, 0x2745
je 0x422d83
cmp eax, 0x2746
je 0x422d83
cmp eax, 0x2749
je 0x422d83
cmp eax, 0x274a
je 0x422d83
add esi, ebx
cmp esi, edi
jl 0x422d34
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x422e60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
jle 0x422eb9
mov ebp, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push dword [0x43ad1c]
call dword [sym.imp.WSOCK32.DLL_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x422eb3
call ebp
cmp eax, 0x2745
je 0x422ec3
cmp eax, 0x2746
je 0x422ec3
cmp eax, 0x2749
je 0x422ec3
cmp eax, 0x274a
je 0x422ec3
add esi, ebx
cmp esi, edi
jl 0x422e74
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x422ed0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [0x435021]
push str.ERROR__i__s_n__Message:__s_n_n
push dword [0x43bc68]
call sub.MSVCRT.dll_sprintf
mov edx, dword [0x43bc68]
add esp, 0x14
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422f00
sub eax, esi
pop esi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
jmp fcn.00422e60

Function at 0x426215
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x427610
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call fcn.004277f0
mov ebp, eax
add esp, 0xc
xor ebx, ebx
lea edi, [ebp*4]
test edi, edi
jle 0x427689
mov ecx, dword [esp + 0x14]
lea esi, [esi + edi*4]
add esi, 8
add ecx, 8
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x427645
mov esi, dword [esp + 0x14]
cmp ebp, 1
jle 0x4277e9
add esi, 2
lea edi, [ebp - 1]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x432ef8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4336f8]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4332f8]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x433af8]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x432ef8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4336f8]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4332f8]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x433af8]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x432ef8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4336f8]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4332f8]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x433af8]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x432ef8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4336f8]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4332f8]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x433af8]
mov dword [esi + 0xa], ecx
dec edi
jne 0x427698
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x427ce0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x34
cdq
and edx, 0xf
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
lea edi, [edx + eax]
sar edi, 4
and ebp, 0x8000000f
jns 0x427d0a
dec ebp
or ebp, 0xfffffff0
inc ebp
mov dword [esp + 0x1c], ebp
je 0x427d1f
test edi, edi
jne 0x427d1e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
dec edi
mov eax, dword [esp + 0x58]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
test edi, edi
je 0x427db2
mov ebp, dword [esp + 0x48]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x50], eax
push esi
push ebx
push dword [ebp + 4]
lea eax, [ebp + 0xf8]
push eax
call fcn.00426a40
mov eax, dword [esp + 0x24]
add esp, 0x10
xor dword [esi], eax
mov eax, dword [esp + 0x18]
xor dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 8], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
xor dword [esi + 0xc], ecx
mov ecx, dword [ebx]
mov eax, dword [eax + esi + 8]
add esi, 0x10
mov edx, dword [ebx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xc]
add ebx, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
dec edi
jne 0x427d52
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
test ebp, ebp
je 0x427e7a
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
mov dword [ebp], edi
mov edi, ebp
mov dword [esp + 0x2c], ecx
mov dword [edi + 4], edx
lea edx, [esp + 0x34]
push edx
mov dword [edi + 0xc], eax
lea edx, [esp + 0x28]
mov eax, dword [esp + 0x4c]
push edx
mov dword [edi + 8], ecx
push dword [eax + 4]
lea ecx, [eax + 0xf8]
push ecx
mov dword [esp + 0x30], ecx
call fcn.00426a40
mov ebp, dword [esp + 0x2c]
add esp, 0x10
test ebp, ebp
je 0x427e3a
mov eax, esi
lea edi, [ebx + 0x10]
sub eax, ebx
lea edx, [esp + 0x34]
mov dword [esp + 0x50], eax
mov ebx, eax
mov al, byte [edi]
lea edi, [edi + 1]
mov cl, byte [edx]
lea edx, [edx + 1]
xor cl, al
mov byte [edx - 1], al
mov byte [ebx + edi - 1], cl
dec ebp
jne 0x427e24
push esi
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 4]
push dword [esp + 0x2c]
call fcn.00426a40
mov eax, dword [esp + 0x24]
add esp, 0x10
xor dword [esi], eax
mov eax, dword [esp + 0x18]
xor dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
xor dword [esi + 0xc], ecx
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
pop esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
pop ebp
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x48]
pop ebx
add esp, 0x34
ret
Function at 0x427ea0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x20
cdq
and edx, 0xf
push ebp
mov ebp, dword [esp + 0x30]
push esi
lea esi, [edx + eax]
mov eax, dword [esp + 0x38]
sar esi, 4
push edi
mov edi, dword [esp + 0x34]
and eax, 0x8000000f
jns 0x427ecc
dec eax
or eax, 0xfffffff0
inc eax
mov dword [esp + 0x34], eax
je 0x427ee0
test esi, esi
jne 0x427edf
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
dec esi
push ebx
mov ebx, dword [esp + 0x44]
test esi, esi
je 0x427f3e
mov ecx, dword [esp + 0x34]
lea edx, [ecx + 8]
mov eax, dword [edi]
xor eax, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
xor eax, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
xor eax, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push ebp
push eax
push dword [ecx + 4]
push edx
call fcn.00427020
mov ecx, dword [esp + 0x44]
mov ebx, ebp
add esp, 0x10
add edi, 0x10
add ebp, 0x10
lea edx, [ecx + 8]
dec esi
jne 0x427ef0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x427ff2
mov edx, dword [edi + 8]
xor edx, dword [ebx + 8]
mov eax, dword [edi]
xor eax, dword [ebx]
mov ecx, dword [edi + 4]
xor ecx, dword [ebx + 4]
mov esi, dword [edi + 0xc]
xor esi, dword [ebx + 0xc]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x14], eax
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x38]
push edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
push dword [eax + 4]
lea ecx, [eax + 8]
push ecx
mov dword [esp + 0x4c], ecx
call fcn.00427020
mov ebx, dword [esp + 0x48]
add esp, 0x10
xor esi, esi
test ebx, ebx
je 0x427fb9
lea edx, [ebp + 0x10]
sub edi, ebp
lea esp, [esp]
mov cl, byte [esp + esi + 0x20]
lea edx, [edx + 1]
mov al, byte [edi + edx - 1]
xor al, cl
mov byte [edx - 1], cl
mov byte [esp + esi + 0x20], al
inc esi
cmp esi, ebx
jb 0x427fa0
lea eax, [esp + 0x20]
push eax
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push dword [esp + 0x48]
call fcn.00427020
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x30]
mov dword [ebp], eax
add esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0xc]
pop ebx
pop edi
pop esi
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x34]
pop ebp
add esp, 0x20
ret
Function at 0x4029e0
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8985
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 7
jbe 0x402a18
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x2c], 0x4ec614
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x402a5d
mov byte [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esi + 0xc], edi
jmp 0x402bb5
mov dword [ebp - 0x24], 0x4ec0e4
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x4ec0ec
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402e20
mov edi, eax
test edi, edi
je 0x402a9c
mov dword [esi + 0xc], edi
jmp 0x402b73
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
push ecx
push 0x400
lea ecx, [ebp - 0x38]
call fcn.00403580
mov esi, dword [ebp - 0x38]
nop dword [eax]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b0f
push 0
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402b16
cmp dword [ebp - 0x14], 0
jne 0x402ad0
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.00402ea0
mov edi, eax
jmp 0x402b29
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax + ecx], edi
mov byte [ebp - 4], 2
test esi, esi
je 0x402b73
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x402b54
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402beb
push ecx
push esi
call fcn.004a18b4
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x4ec0ec
test eax, eax
je 0x402b8c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x4ec0e4
test eax, eax
je 0x402bae
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0x4ec614
test ebx, ebx
je 0x402bd5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004a68cf
int3
Function at 0x402e20
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea ebx, [edi + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x402e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
lea eax, [edi + 4]
push eax
push 0
push 0
push 0x800c
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402e54
pop edi
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x404240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8ca0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4042c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4042c7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4042a7
cmp esi, edx
jae 0x4042c7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404295
cmp esi, edx
jae 0x4042c7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret