joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e3e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f2be4]
cmp dword [eax + 0x30], 0
je 0x45e492
cmp dword [ebx + 0x94], 0
jne 0x45e48c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e378
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45e48c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45e452
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e48c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418a18
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e461
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45eff4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45f029
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004048f0
jmp 0x45f036
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404854
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4600b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4600f1
mov eax, esi
call fcn.00446168
test al, al
je 0x4600f1
mov eax, dword [ebx + 0x84]
call fcn.00445e64
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4600f1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00445e64
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46481c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46484a
mov eax, ebx
call fcn.004652d0
cmp dword [ebx + 0x40], 0
je 0x464843
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4648bb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4648ad
cmp dword [ebx + 8], 0
je 0x46486c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46487e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4648ad
cmp dword [ebx + 8], 0
je 0x46485f
cmp eax, 3
je 0x464891
dec eax
jne 0x46485f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46485f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46485f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4648d9
cmp dword [ebx + 0x14], 0xcc
je 0x4648d9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004648e4
pop ebx
ret
Function at 0x47bd0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47bd7d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4f1570]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x47bd67
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0047bcfc
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x47bb04]
call fcn.0047bda4
mov dword [0x4f15d4], eax
mov eax, dword [ebp - 4]
call fcn.0047bcac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bd84
lea eax, [ebp - 8]
call fcn.00406300
ret
Function at 0x496690
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.0049667c
test eax, eax
jne 0x4966b1
mov eax, esi
call fcn.00404800
jmp 0x496742
mov eax, ebx
call fcn.004967d8
test al, al
je 0x4966f7
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov edi, eax
mov eax, esi
mov ecx, edi
xor edx, edx
call fcn.004048f0
test edi, edi
je 0x4966ee
mov eax, dword [esi]
push eax
inc edi
push edi
push 0xd
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x496742
mov eax, esi
call fcn.00404800
jmp 0x496742
mov ebp, dword [ebx + 0x70]
test ebp, ebp
je 0x49673b
mov eax, dword [ebp + 0x208]
call fcn.00419770
test eax, eax
jle 0x496729
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 0x208]
mov edx, edi
call fcn.00433618
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.00404854
jmp 0x496742
mov eax, esi
mov edx, dword [ebx + 0x70]
mov edx, dword [edx + 0x210]
call fcn.00404854
jmp 0x496742
mov eax, esi
call fcn.00404800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x498edc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x498f96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404f0c
mov eax, dword [0x4f1d48]
cmp dword [eax], 2
jne 0x498f4b
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405154
mov eax, dword [ebx]
call fcn.00405078
push eax
mov eax, dword [ebx]
call fcn.00405068
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405078
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405154
jmp 0x498f7d
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040988c
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405058
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498f9d
lea eax, [ebp - 0x3f0]
call fcn.00404800
ret
Function at 0x4a3010
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x4f2ef0
test esi, esi
jne 0x4a302a
xor eax, eax
jmp 0x4a312c
cmp dword [ebp], 0
jne 0x4a3035
call fcn.004a2fa0
xor ebx, 0xffffffff
cmp edi, 8
jb 0x4a3105
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x4a3041
test edi, edi
jbe 0x4a3127
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x4a3109
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c440c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffbc
xor eax, eax
push ebp
push 0x4c45bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00427c60
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x48]
call fcn.00451c7c
call fcn.004afab0
mov edx, dword [ebp + 8]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x4c], 0
je 0x4c4490
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov eax, dword [eax + 0x68]
call fcn.00422a60
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00427c60
mov eax, dword [eax + 0xc]
pop edx
call fcn.00422a68
mov eax, dword [ebp + 8]
mov dword [eax - 0x50], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422948
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.00409738
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00427c60
call fcn.004237d0
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004229bc
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004229f8
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004229f8
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004229f8
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422a60
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00427c60
mov eax, dword [eax + 0xc]
pop edx
call fcn.004228f4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00427c60
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 0x54], 0x13
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x94]
mov edx, dword [ecx + edx*8 + 0xc]
call fcn.00422738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c45c6
lea eax, [ebp - 4]
call fcn.00404800
ret
Function at 0x4dbdb4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x4dbdcc
mov eax, ebx
call fcn.004db610
cmp dword [ebx + 0x68], 0
jne 0x4dbdd9
mov eax, ebx
call fcn.004db5a8
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x10]
mov eax, ebx
call fcn.004db428
lea eax, [esp + 0x10]
xor edx, edx
call fcn.004dc7c4
cmp eax, dword [esp]
je 0x4dbe47
lea eax, [esp + 0x10]
xor edx, edx
call fcn.004dc7d8
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x4dbe23
adc edx, 0
push edx
lea eax, [esp + 0x14]
xor edx, edx
call fcn.004dc7c4
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x4dbe3c
adc edx, 0
push edx
lea eax, [esp + 0x18]
push eax
call sub.user32.dll_InflateRect
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x4dbe62
push 3
mov eax, dword [esi + 0x10]
call fcn.00445e64
push eax
call sub.user32.dll_GetWindow
mov esi, eax
jmp 0x4dbe6f
push 3
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x68]
call fcn.0043edec
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.0043ee10
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.0043ee38
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.0043ee5c
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.00406b14
mov eax, ebp
mov edx, dword [0x4f18c4]
mov byte [edx + 2], al
mov eax, dword [0x4f18c4]
mov byte [eax], 0
mov eax, dword [0x4f18c4]
mov byte [eax + 1], 0
mov eax, dword [0x4f18c4]
mov byte [eax + 3], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00445e64
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00445e64
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00445e64
push eax
call sub.user32.dll_SetWindowLongA
push 2
mov eax, dword [0x4f18c4]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.00427c60
call fcn.004237d0
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00445e64
push eax
mov eax, dword [0x4f18a4]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x68]
call fcn.00445e64
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4dcbb8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x4f1b7c]
mov eax, dword [eax]
call fcn.0045f2a4
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, esi
jb 0x4dcbc3
pop esi
pop ebx
ret
Function at 0x4dd138
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.00409378
test al, al
je 0x4dd1bf
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.00403270
or esi, 0x100
test esi, esi
jns 0x4dd173
call fcn.0040396c
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404cc0
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4dd1bf
mov dl, 1
mov eax, dword [0x4218d0]
call fcn.0042922c
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.00429638
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x4dd1bf
mov eax, esp
call fcn.0040e228
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x4073c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4073db
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 0x407412
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40740e
jmp 0x407400
cmp esi, eax
jae 0x407412
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407400
cmp esi, eax
jb 0x407419
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40eac0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fad6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43fa8c]
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 [0x436760]
mov dword [esi + 4], eax
mov ecx, dword [0x436764]
mov dword [esi + 8], ecx
mov edx, dword [0x436768]
mov dword [esi + 0xc], edx
mov eax, dword [0x43676c]
mov dword [esi + 0x10], eax
mov ecx, dword [0x436760]
mov dword [esi + 0x14], ecx
mov edx, dword [0x436764]
mov dword [esi + 0x18], edx
mov eax, dword [0x436768]
mov dword [esi + 0x1c], eax
mov ecx, dword [0x43676c]
xor edi, edi
xor edx, edx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], 0xfefefefe
mov dword [esi], vtable.CAxWindowEx_class_CBackgroundPageHost_.0
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.0040e850
mov dword [esi + 0x3c], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 6
call fcn.00406660
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 8
call fcn.004064c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ed20
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp ebx, esi
je 0x40ee60
cmp dword [ebp + 0x10], esi
je 0x40ee60
mov edi, dword [ebp + 0x18]
cmp edi, esi
je 0x40ee60
push 0xf0000000
push 1
push esi
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40edbb
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x40edbb
lea ecx, [ebp + 8]
push ecx
push esi
push esi
push 0x8004
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40edb0
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x40edb0
mov edx, dword [ebp + 0xc]
push esi
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40edc7
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x1c]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8000
push ecx
push edi
push 8
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x40ee41
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x40ee41
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ebp - 4]
push 0x10001
push eax
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
je 0x40ee37
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x40ee37
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push esi
push esi
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x40ee2d
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ee70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40ee81
mov eax, 0x80070057
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
push 1
push 0x10
push esi
mov edi, 0x80004005
call fcn.0041ddce
add esp, 0x10
cmp eax, 1
jne 0x40eec1
mov al, byte [esi]
cmp al, 0x63
je 0x40eea8
cmp al, 0x43
jne 0x40eec1
mov al, byte [esi + 1]
cmp al, 0x72
je 0x40eeb3
cmp al, 0x52
jne 0x40eec1
cmp byte [esi + 2], 0x32
jne 0x40eec1
cmp byte [esi + 3], 0x34
jne 0x40eec1
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x40f9b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test eax, eax
je 0x40fa0a
test ebx, ebx
je 0x40fa0a
cmp edi, 1
jb 0x40fa0a
push esi
push 0x4352c4
push eax
lea eax, [ebp - 4]
push eax
mov esi, 0x80004005
mov dword [ebp - 4], 0
call fcn.004200a9
add esp, 0xc
test eax, eax
jne 0x40fa03
mov eax, dword [ebp - 4]
test eax, eax
je 0x40fa03
push eax
push edi
push 1
push ebx
call fcn.0041df42
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041e7fa
add esp, 0x14
xor esi, esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80070057
mov esp, ebp
pop ebp
ret
Function at 0x410400
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43fa8c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
xor eax, eax
push ebx
mov dword [ebp - 0xb], eax
mov byte [ebp - 7], al
mov eax, dword [ebp + 8]
push SysReAllocStringLen
xor esi, esi
push eax
mov byte [ebp - 0xc], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x410480
call fcn.00408640
cmp eax, ebx
jge 0x410485
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41046e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d48e
mov esp, ebp
pop ebp
ret
mov esi, eax
mov dword [ebp - 0x1c], esi
push edi
lea ecx, [ebp - 0x10]
push ecx
push esi
xor edi, edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x4104aa
call fcn.00408640
test eax, eax
js 0x4104b2
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0x10], edx
push ebx
lea eax, [ebp - 0x10]
push eax
push 5
lea ecx, [ebp - 0xc]
push ecx
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4104d0
call fcn.00408640
lea edx, [ebp - 0xc]
push edx
call fcn.0040f630
add esp, 4
test eax, eax
je 0x4104e4
cmp esi, ebx
jmp 0x410515
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x410501
call fcn.00408640
lea edx, [edi + 1]
push edx
call fcn.0041e8d0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x410550
test esi, esi
je 0x41051e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41053d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d48e
mov esp, ebp
pop ebp
ret
push edi
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040fa90
test esi, esi
je 0x410567
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov byte [edi + ebx], 0
test esi, esi
je 0x410576
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410595
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041d48e
mov esp, ebp
pop ebp
ret