joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40382c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403883
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403875
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x403871
cmp edi, eax
jae 0x403875
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403863
cmp edi, eax
jb 0x403879
xor eax, eax
jmp 0x403882
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x403b14
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp byte [esi + 0x18], bl
je 0x403b29
xor al, al
jmp 0x403bc6
push ebx
push 4
push esi
push 0x403a3d
push ebx
push ebx
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x403b22
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x403b5f
call fcn.00403c3b
jmp 0x403b22
mov ecx, dword [ebp + 8]
push ebx
mov dword [esi], esi
mov dword [esi + 0x1c], ecx
call dword [sym.imp.mfc100u.dll_CWnd::ShowWindow]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [edi]
cmp eax, ecx
jle 0x403b7b
mov ecx, eax
mov edx, dword [edx + 4]
mov eax, dword [edi + 4]
cmp edx, eax
jle 0x403b87
mov eax, edx
neg eax
push 1
mov edx, eax
neg edx
push edx
neg ecx
mov edx, ecx
neg edx
push edx
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call dword [sym.imp.mfc100u.dll_CWnd::MoveWindow]
mov eax, dword [edi]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x24], eax
mov eax, dword [edi]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esi + 0x30], eax
mov byte [esi + 0x18], 1
mov al, 1
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x403bcc
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, dword [eax + 0x14]
cmp esi, 4
je 0x403c22
mov edx, dword [eax + 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [eax + 0x24]
mov dword [eax + 0x2c], edx
mov edx, dword [ecx]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x24], edx
sub edx, dword [eax + 0x30]
cmp edx, 8
jge 0x403bfa
pop esi
jmp fcn.00403c24
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
cmp dword [eax + 0x28], edx
jne 0x403c09
cmp dword [eax + 0x2c], ecx
je 0x403c22
cmp esi, 1
jne 0x403c22
push dword [eax + 8]
and dword [eax + 0x10], 0
mov dword [eax + 0x14], 3
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret

Function at 0x403c24
Capabilities:
Resume thread

Disassembly:
cmp byte [eax + 0x18], 0
je 0x403c3a
push dword [eax + 8]
mov dword [eax + 0x14], 4
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x403c3b
Capabilities:
Resume thread

Disassembly:
cmp byte [esi + 0x18], 0
je 0x403c7c
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
or dword [esi + 4], 0xffffffff
or dword [esi + 8], 0xffffffff
mov byte [esi + 0x18], 0
pop edi
ret
Function at 0x403c7d
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x411e38]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [ecx], 3
lea esi, [ebp - 0xb8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov edi, edx
lea esi, [ebp - 0xb8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push str.Shell_TrayWnd
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xc4], edx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 0xbc]
push 2
push eax
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
cmp eax, ebx
je 0x403e2a
lea ecx, [ebp - 0xa4]
push ecx
push eax
mov dword [ebp - 0xa4], 0x68
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x403d81
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0xb8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x3c]
push eax
push 5
mov dword [ebp - 0x3c], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x403e2a
mov edi, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xbc]
push edi
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp - 0xc4]
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc0]
mov dword [ecx], eax
sub eax, ebx
je 0x403e04
dec eax
je 0x403df9
dec eax
je 0x403dee
dec eax
jne 0x403e2a
mov eax, dword [ebp - 0xac]
sub eax, dword [edi + 0xc]
cdq
mov ecx, eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
jmp 0x403e14
mov eax, dword [ebp - 0xb0]
sub eax, dword [edi + 8]
jmp 0x403e0c
mov eax, dword [ebp - 0xb4]
sub eax, dword [edi + 4]
jmp 0x403de3
mov eax, dword [ebp - 0xb8]
sub eax, dword [edi]
cdq
mov ecx, eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
xor ecx, edx
sub ecx, edx
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
mov ecx, dword [ebp - 0xa8]
setl al
mov byte [ecx], al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b682
leave
ret
Function at 0x40498d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x40c39c
call fcn.0040c088
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x18], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, str.AppDataDirectory
push ebx
push dword [eax + 4]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
call edi
cmp dword [ebp - 0x10], esi
jne 0x4049d3
mov esi, dword [ebp + 0xc]
call fcn.004033c4
mov eax, esi
jmp 0x404a2e
mov eax, dword [0x411e58]
mov ecx, 0x411e58
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
shr eax, 1
inc eax
push eax
lea esi, [ebp - 0x14]
call fcn.004039cf
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax + 4]
call edi
call fcn.0040338f
mov esi, dword [ebp - 0x14]
lea eax, [esi - 0x10]
call fcn.00403539
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
call fcn.00403a20
mov eax, edi
call fcn.0040c12a
ret 8
Function at 0x405eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x405ef8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x405ef8
mov ecx, dword [eax]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x405ef5
push ebx
lea ecx, [ecx]
mov eax, 0x80808081
mul ecx
shr edx, 7
mov ebx, edx
imul ebx, ebx, 0xff
mov eax, ecx
sub eax, ebx
inc eax
xor byte [esi], al
add edx, eax
add ecx, edx
inc esi
dec edi
jne 0x405ed0
mov eax, dword [ebp + 0x10]
pop ebx
mov dword [eax], ecx
pop edi
pop esi
pop ebp
ret

Function at 0x405f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x411e38]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
cmp dword [ebp + 0x14], eax
jg 0x405f48
pop edi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
push esi
push 0x200
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x405f71
lea eax, [esi + 4]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 0x16]
movzx ecx, word [edi + 8]
mov edi, dword [ebp + 8]
add eax, ecx
shl eax, 4
push 0
and eax, 0xfffff
push eax
push edi
call dword [sym.imp.MSVCR100.dll__lseek]
push 0x200
push esi
push edi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x18
test eax, eax
jne 0x405fc4
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x6c]
push edx
call fcn.00407890
push 0x200
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00407fa0
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00408050
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
call sub.MSVCR100.dll_memcpy
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 4]
add esp, 0x28
pop esi
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040b682
mov esp, ebp
pop ebp
ret
Function at 0x406020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x411e38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x2fc], eax
xor eax, eax
xor esi, esi
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
cmp dword [ebp + 0x14], esi
jg 0x40606c
lea eax, [esi + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
push 0x200
mov dword [ebp - 0x2f0], esi
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x2f8], eax
cmp eax, esi
jne 0x40609e
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
push edi
push esi
push esi
push ebx
call dword [sym.imp.MSVCR100.dll__lseek]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
add esp, 0xc
cmp cx, word [edx + 6]
jae 0x40612a
lea eax, [ebp - 0x270]
mov dword [ebp - 0x2f4], eax
lea edi, [ebp - 0x294]
lea esp, [esp]
push 0x28
push edi
push ebx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 0x28
jne 0x4061f3
mov ecx, dword [ebp - 0x2f4]
test byte [ecx], 0x60
jne 0x4060ff
inc dword [ebp - 0x2f0]
add dword [ebp - 0x2f4], eax
jmp 0x406108
cmp dword [ebp - 0x2f0], 0x10
je 0x406117
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 6]
inc esi
add edi, 0x28
cmp esi, eax
jl 0x4060d0
mov eax, 3
cmp dword [ebp - 0x2f0], eax
jle 0x40612a
mov dword [ebp - 0x2f0], eax
mov ecx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], 0
test ecx, ecx
jle 0x40618e
mov eax, 0x200
cdq
idiv ecx
lea esi, [ebp - 0x280]
mov edi, eax
mov edi, edi
mov edx, dword [esi]
push 0
push edx
push ebx
call dword [sym.imp.MSVCR100.dll__lseek]
mov eax, dword [ebp - 0x2f8]
push edi
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x18
cmp eax, edi
jne 0x4061f3
mov eax, dword [ebp - 0x2f4]
inc eax
add esi, 0x28
mov dword [ebp - 0x2f4], eax
cmp eax, dword [ebp - 0x2f0]
jl 0x406150
lea edx, [ebp - 0x2ec]
push edx
call fcn.00407890
mov esi, dword [ebp - 0x2f8]
push 0x200
lea eax, [ebp - 0x2ec]
push esi
push eax
call fcn.00407fa0
lea ecx, [ebp - 0x2ec]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00408050
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edx
call sub.MSVCR100.dll_memcpy
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x28
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2f8]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040b682
mov esp, ebp
pop ebp
ret
Function at 0x406220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x411e38]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
cmp dword [ebp + 0x10], eax
jg 0x406263
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
push esi
push 0x200
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x40628b
lea eax, [esi + 4]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push edi
call dword [sym.imp.MSVCR100.dll__lseek]
push 0x200
push esi
push edi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x18
pop edi
test eax, eax
jne 0x4062ce
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x6c]
push eax
call fcn.00407890
push 0x200
lea ecx, [ebp - 0x6c]
push esi
push ecx
call fcn.00407fa0
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00408050
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push ebx
call sub.MSVCR100.dll_memcpy
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 4]
add esp, 0x28
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040b682
mov esp, ebp
pop ebp
ret
Function at 0x406320
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x411e38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR100.dll__filelength]
add esp, 4
test eax, eax
jle 0x406534
test ebx, ebx
je 0x406534
cmp dword [ebp + 0x10], 0x10
jg 0x406534
push esi
push 0x200
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x406388
lea eax, [esi + 4]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
call dword [sym.imp.MSVCR100.dll__lseek]
push 0x40
push esi
push edi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x18
cmp eax, 0x40
jne 0x40643c
movzx eax, word [esi]
mov ecx, 0x4d5a
cmp ax, cx
je 0x4063ee
mov edx, 0x5a4d
cmp ax, dx
je 0x4063ee
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push ebx
push edi
call fcn.00406220
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x14
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
cmp word [esi + 8], 4
jb 0x406505
movzx eax, word [esi + 0x18]
cmp eax, 0x40
jae 0x406412
movzx edx, word [esi + 6]
lea ecx, [eax + edx*4]
cmp ecx, 0x3c
jg 0x406505
mov edx, dword [esi + 0x3c]
push 0
push edx
push edi
call dword [sym.imp.MSVCR100.dll__lseek]
push pe_nt_image_headers32
lea eax, [ebp - 0xfc]
push eax
push edi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x18
cmp eax, 0xf8
je 0x40645c
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xfc], 0x4550
jne 0x4064d3
mov ax, word [ebp - 0xf8]
mov ecx, 0x14c
cmp ax, cx
je 0x40648d
mov edx, 0x14d
cmp ax, dx
je 0x40648d
mov ecx, 0x14e
cmp ax, cx
jne 0x4064d3
mov edx, 0x10b
cmp word [ebp - 0xe4], dx
jne 0x4064d3
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push ebx
lea edx, [ebp - 0xfc]
push edx
push edi
call fcn.00406020
add esp, 0x14
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push ebx
push esi
push edi
call fcn.00405f00
add esp, 0x14
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edx
push eax
push ebx
push esi
push edi
call fcn.00405f00
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x18
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 8
pop ebx
call fcn.0040b682
mov esp, ebp
pop ebp
ret
Function at 0x406550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x411e38]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov byte [ebp - 0x14], 0
call dword [sym.imp.MSVCR100.dll__filelength]
add esp, 4
test eax, eax
jle 0x406655
cmp eax, edi
jle 0x406655
test ebx, ebx
je 0x406655
cmp dword [ebp + 0x14], 0x10
jg 0x406655
push esi
mov esi, eax
sub esi, edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4065d6
pop esi
lea eax, [edi + 4]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
push edi
push ecx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, esi
je 0x406609
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x6c]
push edx
call fcn.00407890
push esi
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00407fa0
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00408050
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
call sub.MSVCR100.dll_memcpy
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x28
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b682
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 8
pop ebx
call fcn.0040b682
mov esp, ebp
pop ebp
ret
Function at 0x4074c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x4074f3
cmp dword [ebp + 0x14], edi
je 0x4074f3
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x4074f3
push edi
push edi
push ebx
call dword [sym.imp.MSVCR100.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x407508
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x407500
mov dword [eax], 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x407553
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
je 0x407610
cmp eax, esi
jne 0x407610
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
pop esi
pop edi
mov dword [ecx], edx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jae 0x4075b4
test eax, eax
je 0x407596
mov ecx, dword [ebp - 8]
add ecx, dword [ebp + 8]
sub eax, edi
push eax
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
je 0x407610
mov ecx, dword [esi]
mov edx, ecx
sub edx, edi
cmp eax, edx
jne 0x407610
sub ecx, edi
add dword [ebp - 8], ecx
add dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edi, dword [esi + 8]
dec ecx
cmp edi, ecx
jae 0x407539
push 0
inc edi
push edi
push ebx
call dword [sym.imp.MSVCR100.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x407610
mov ecx, dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x4075be
cmp dword [esi], ecx
jb 0x4075f0
mov eax, dword [ebp - 8]
add eax, dword [ebp + 8]
mov esi, ecx
sub esi, edi
push esi
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
je 0x407610
cmp eax, esi
jne 0x407610
add dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
cmp dword [eax], edx
jae 0x407539
mov esi, eax
mov esi, dword [esi + 0x10]
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x407550
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
lea eax, [esi + 1]
pop esi
pop edi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x40761d
mov dword [eax], 0xd
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407890
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x408ac0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x411e38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, esi
shr eax, 6
xor ebx, ebx
push edi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], 0x67452301
mov dword [ebp - 0x54], 0xefcdab89
mov dword [ebp - 0x50], 0x98badcfe
mov dword [ebp - 0x4c], 0x10325476
test eax, eax
je 0x408b28
mov edi, ecx
mov dword [ebp - 0x48], eax
mov ebx, eax
lea ecx, [ebp - 0x58]
push edi
push ecx
call fcn.00408390
add esp, 8
add edi, 0x40
dec dword [ebp - 0x48]
jne 0x408b10
mov ecx, dword [ebp - 0x60]
mov edi, esi
and edi, 0x3f
shl ebx, 6
push edi
add ebx, ecx
lea edx, [ebp - 0x44]
push ebx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
lea ebx, [ebp + edi - 0x44]
cmp edi, 0x38
jae 0x408b7e
mov eax, 0x38
sub eax, edi
push eax
push 0
push ebx
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x44]
lea ecx, [esi*8]
push edx
lea eax, [ebp - 0x58]
mov byte [ebx], 0x80
shr esi, 0x1d
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
call fcn.00408390
add esp, 0x14
jmp 0x408bcb
mov ecx, 0x40
sub ecx, edi
push ecx
push 0
push ebx
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x58]
push eax
mov byte [ebx], 0x80
call fcn.00408390
push 0x38
lea ecx, [ebp - 0x44]
push 0
push ecx
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x44]
lea edx, [esi*8]
push eax
lea ecx, [ebp - 0x58]
shr esi, 0x1d
push ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
call fcn.00408390
add esp, 0x28
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], edx
mov edx, dword [ebp - 0x50]
pop esi
xor ecx, ebp
mov dword [eax + 8], edx
pop ebx
call fcn.0040b682
mov esp, ebp
pop ebp
ret