joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4547c6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00439b7b
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x454802
call fcn.004549e5
mov dword [esi + 0xc], 1
jmp 0x454807
call fcn.004549e5
cmp dword [esi], 0
je 0x454850
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x45482a
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00431de4
jmp 0x45483b
push 0xff
mov ecx, esi
call fcn.0040f9f0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00422270
jmp 0x454874
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x454874
push dword [esi]
push dword [ebp - 4]
call fcn.0044610d
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45493a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004549e5
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x454982
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00431de4
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00422270
jmp 0x45498d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0044610d
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45da2f
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00471481
call fcn.00439893
cmp dword [eax + 0x14], 0
jne 0x45da4a
mov ecx, esi
pop esi
jmp fcn.0045ce30
pop esi
ret

Function at 0x46f131
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0040e100
call fcn.00439893
cmp dword [eax + 0x14], 0
jne 0x46f14c
mov ecx, esi
pop esi
jmp fcn.0046ea1a
pop esi
ret
Function at 0x571108
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ef220]
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.00562103
mov dword [ebp - 0x14], eax
cmp dword [0x5fb4a8], esi
jne 0x5711fb
push 0x800
push esi
push 0x5bcdf0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x571188
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5712db
push esi
push esi
push 0x5bcdf0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5712db
push 0x5bce08
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5712db
push eax
call ebx
push 0x5bce14
push edi
mov dword [0x5fb4a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5bce24
push edi
mov dword [0x5fb4ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5fb4b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5fb4b8], eax
test eax, eax
je 0x5711f8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5fb4b4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x571220
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x571213
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x571235
push 4
pop eax
jmp 0x5712dd
cmp dword [ebp - 0x14], esi
je 0x571235
push dword [0x5fb4a8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x57121a
mov eax, dword [0x5fb4b4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x571293
cmp dword [0x5fb4b8], edi
je 0x571293
push eax
call ebx
push dword [0x5fb4b8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x571293
test eax, eax
je 0x571293
call ecx
test eax, eax
je 0x571288
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 0x571288
test byte [ebp - 8], 1
jne 0x571293
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5712c3
mov eax, dword [0x5fb4ac]
cmp eax, edi
je 0x5712c0
push eax
call ebx
test eax, eax
je 0x5712c0
call eax
mov esi, eax
test esi, esi
je 0x5712c0
mov eax, dword [0x5fb4b0]
cmp eax, edi
je 0x5712c0
push eax
call ebx
test eax, eax
je 0x5712c0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5fb4a8]
call ebx
test eax, eax
je 0x5712db
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5712dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
xor ebx, ebx
push esi
xor ecx, ecx
inc ebx
push edi
mov eax, ebx
mov esi, 0xff
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea edi, [eax + eax]
xor edx, edi
xor edx, eax
and edx, esi
mov dword [ebp + ecx*4 - 0x80c], eax
mov dword [ebp + eax*4 - 0x40c], ecx
inc ecx
cmp ecx, 0x100
mov eax, edx
jl 0x401018
mov eax, ebx
mov ecx, 0x4ec340
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
and edx, 0x1b
add eax, eax
xor edx, eax
and edx, esi
add ecx, 4
cmp ecx, 0x4ec368
mov eax, edx
jl 0x401050
mov byte [0x4ee468], 0x63
mov byte [0x4ed3cb], 0
mov eax, dword [ebp + ebx*4 - 0x40c]
shl eax, 2
lea ecx, [ebp - 0x410]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, esi
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, esi
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, esi
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, esi
xor eax, edx
mov byte [ebx + 0x4ee468], al
mov byte [eax + 0x4ed368], bl
inc ebx
cmp ebx, 0x100
jl 0x401082
xor edi, edi
movzx edx, byte [edi + 0x4ee468]
mov eax, edx
and al, 0x80
movsx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x1b
lea eax, [edx + edx]
xor ecx, eax
and ecx, esi
mov eax, ecx
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
mov ecx, edi
shl ecx, 2
mov dword [ecx + 0x4ee068], eax
rol eax, 8
mov dword [ecx + 0x4edc68], eax
rol eax, 8
mov dword [ecx + 0x4ed868], eax
rol eax, 8
mov dword [ecx + 0x4ed468], eax
movzx eax, byte [edi + 0x4ed368]
test eax, eax
je 0x401163
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3d4]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 4], eax
jmp 0x401167
and dword [ebp - 4], 0
movzx eax, byte [edi + 0x4ed368]
test eax, eax
je 0x401190
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3e8]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 0xc], eax
jmp 0x401194
and dword [ebp - 0xc], 0
movzx eax, byte [edi + 0x4ed368]
test eax, eax
je 0x4011bd
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3d8]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 8], eax
jmp 0x4011c1
and dword [ebp - 8], 0
movzx eax, byte [edi + 0x4ed368]
test eax, eax
je 0x4011e7
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3e0]
mov ebx, esi
cdq
idiv ebx
mov edx, dword [ebp + edx*4 - 0x80c]
jmp 0x4011e9
xor edx, edx
shl edx, 8
xor edx, dword [ebp - 8]
shl edx, 8
xor edx, dword [ebp - 0xc]
shl edx, 8
xor edx, dword [ebp - 4]
inc edi
mov dword [ecx + 0x4ecf68], edx
rol edx, 8
mov eax, edx
mov dword [ecx + 0x4ecb68], eax
rol eax, 8
mov dword [ecx + 0x4ec768], eax
rol eax, 8
cmp edi, 0x100
mov dword [ecx + 0x4ec368], eax
jl 0x4010e5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4014c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x118
sub eax, 0x80
push edi
je 0x401500
sub eax, 0x40
je 0x4014f5
sub eax, 0x40
jne 0x4015f4
mov edi, dword [ebp + 8]
mov dword [edi], 0xe
jmp 0x401509
mov edi, dword [ebp + 8]
mov dword [edi], 0xc
jmp 0x401509
mov edi, dword [ebp + 8]
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push dword [ebp + 0xc]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.00401230
mov eax, dword [ebp - 0x118]
shl eax, 4
add eax, dword [ebp - 0x114]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
push 4
pop ecx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
mov edi, dword [edi]
add esi, ecx
dec edi
sub eax, 0x1c
test edi, edi
jle 0x4015c3
push ebx
mov dword [ebp + 0x10], ecx
movzx edx, byte [eax + 3]
movzx edx, byte [edx + 0x4ee468]
movzx ebx, byte [eax + 2]
movzx ebx, byte [ebx + 0x4ee468]
mov edx, dword [edx*4 + 0x4ec368]
xor edx, dword [ebx*4 + 0x4ec768]
movzx ebx, byte [eax + 1]
movzx ebx, byte [ebx + 0x4ee468]
xor edx, dword [ebx*4 + 0x4ecb68]
mov ebx, dword [eax]
and ebx, 0xff
movzx ebx, byte [ebx + 0x4ee468]
xor edx, dword [ebx*4 + 0x4ecf68]
add eax, ecx
mov dword [esi], edx
add esi, ecx
dec dword [ebp + 0x10]
jne 0x401563
dec edi
sub eax, 0x20
test edi, edi
jg 0x401560
pop ebx
mov edx, dword [eax]
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
add esi, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
push 0x118
mov dword [esi + 4], eax
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0046ae40
add esp, 0xc
pop esi
pop edi
leave
ret
Function at 0x401fe3
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x688]
sub esp, 0x730
mov eax, dword [0x4eafb0]
xor eax, ebp
mov dword [ebp + 0x684], eax
mov eax, dword [ebp + 0x690]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x694]
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x70], ecx
test eax, eax
jne 0x40201e
xor eax, eax
jmp 0x402199
test ecx, ecx
je 0x402017
push esi
push edi
push eax
push 1
lea eax, [ebp + 0x81]
push 1
push eax
call fcn.0046c550
and dword [ebp + 0x7c], 0
mov edi, 0x200
push edi
lea eax, [ebp + 0x84]
push 0
push eax
add ebx, 0x10
call fcn.0046ae40
lea eax, [ebp + 0x78]
push eax
mov esi, str._02X
push esi
push ebx
call fcn.0046b7e0
add esp, 0x28
jmp 0x40208a
cmp dword [ebp + 0x7c], edi
jge 0x40208e
mov al, byte [ebp + 0x78]
mov ecx, dword [ebp + 0x7c]
inc dword [ebp + 0x7c]
mov byte [ebp + ecx + 0x84], al
lea eax, [ebp + 0x78]
push eax
inc ebx
inc ebx
push esi
push ebx
call fcn.0046b7e0
add esp, 0xc
test eax, eax
jg 0x402065
push 0x100
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004014c8
mov al, byte [ebp + 0x69c]
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebp + 0x698], esi
mov byte [ebp + 0x83], al
jle 0x40211e
push 0x10
pop ebx
push dword [ebp + 0x74]
lea eax, [ebp + 0x284]
push ebx
push 1
push eax
call fcn.0046c550
add esp, 0x10
cmp eax, ebx
jne 0x40214f
lea eax, [ebp + 0x284]
push eax
push eax
lea eax, [ebp - 0xa8]
push esi
push eax
call fcn.004015f7
mov ecx, dword [ebp + 0x70]
add esp, 0x10
xor eax, eax
lea esi, [ecx + edi]
mov cl, byte [ebp + eax + 0x284]
add byte [ebp + 0x83], cl
mov byte [esi + eax], cl
inc eax
cmp eax, ebx
jl 0x4020fd
add edi, ebx
xor esi, esi
cmp edi, dword [ebp + 0x698]
jl 0x4020c4
push dword [ebp + 0x74]
lea eax, [ebp + 0x82]
push 1
push 1
push eax
call fcn.0046c550
mov al, byte [ebp + 0x81]
add esp, 0x10
cmp al, byte [ebp + 0x82]
jne 0x40215c
cmp al, byte [ebp + 0x83]
jne 0x40215c
xor eax, eax
inc eax
jmp 0x402197
push esi
push str.Error__
push str.fread_Error__
jmp 0x402167
push esi
push str.Error__
push str.CheckCrc_Error__
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x400
lea eax, [ebp + 0x284]
push esi
push eax
call fcn.0046ae40
push 0x118
lea eax, [ebp - 0xa8]
push esi
push eax
call fcn.0046ae40
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp + 0x684]
xor ecx, ebp
pop ebx
call fcn.0046be30
add ebp, 0x688
leave
ret 0x10

Function at 0x403bff
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
push 0x40
lea esi, [ecx + 0x5c]
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.0046ae40
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret
Function at 0x404457
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4eafb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x48], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
push 0x4bfa64
stosb byte es:[edi], al
push ecx
lea eax, [ebp - 0x40]
push eax
call fcn.0046ef10
add esp, 0xc
cmp dword [ebp - 0x40], ebx
jne 0x4044a3
xor al, al
jmp 0x404582
push esi
push 2
push ebx
push dword [ebp - 0x40]
call fcn.0046b590
push dword [ebp - 0x40]
call fcn.0046e920
push ebx
push ebx
push dword [ebp - 0x40]
mov esi, eax
call fcn.0046b590
push esi
call fcn.0046e8f0
push dword [ebp - 0x40]
mov edi, eax
push esi
push 1
push edi
call fcn.0046c550
mov ecx, dword [ebp - 0x44]
add esp, 0x30
push esi
push edi
call fcn.00404323
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x14]
push eax
call fcn.004043c8
cmp edi, ebx
je 0x4044fb
push edi
call fcn.0046e8d0
pop ecx
push dword [ebp - 0x40]
call fcn.0046e6c0
pop ecx
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x37]
mov byte [ebp - 0x38], bl
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x3b]
mov byte [ebp - 0x3c], bl
stosw word es:[edi], ax
xor esi, esi
push 0x10
lea eax, [ebp - 0x3c]
push eax
movzx eax, byte [ebp + esi - 0x14]
push eax
call fcn.004a4860
add esp, 0xc
cmp byte [ebp - 0x3b], bl
jne 0x404554
lea eax, [ebp - 0x38]
push 0x4bfa60
push eax
call fcn.0046e5d0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0046e5d0
add esp, 0x10
jmp 0x404563
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0046e5d0
pop ecx
pop ecx
inc esi
cmp esi, 0x10
jl 0x40451b
lea eax, [ebp - 0x38]
push eax
call fcn.004a4310
pop ecx
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
call fcn.0040309e
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0046be30
leave
ret 8
Function at 0x40790a
Capabilities:
Write file on windows

Disassembly:
push 0x60
mov eax, 0x4a91b0
call fcn.0046e320
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x34], edi
cmp dword [esi + 0x3c], edi
je 0x407a96
cmp byte [esi + 0x41], 0
je 0x407a96
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x407943
xor al, al
jmp 0x407a98
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.00407725
mov dword [ebp - 4], edi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x30]
call fcn.004078c8
mov edi, eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004078c8
mov dword [ebp - 0x38], eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004060f6
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x18]
mov ebx, eax
call fcn.004060f6
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
lea ecx, [ebp - 0x48]
mov edi, eax
mov byte [ebp - 4], 1
call fcn.00402693
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.00402693
mov eax, edi
sub eax, 0
je 0x4079f0
dec eax
je 0x4079f4
dec eax
dec eax
je 0x407a8f
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004027c0
lea ecx, [ebp - 0x30]
call fcn.004023b9
mov al, bl
jmp 0x407a98
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
call fcn.004078c8
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004060f6
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x60]
sub edi, eax
mov byte [ebp - 4], 0
call fcn.00402693
test edi, edi
jbe 0x407a52
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x30]
call fcn.004078c8
or dword [ebp - 0x34], 1
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004060f6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046b950
add esp, 0x10
cmp edi, eax
je 0x407a52
mov bl, 1
jmp 0x407a54
xor bl, bl
and dword [ebp - 4], 0
test byte [ebp - 0x34], 1
je 0x407a6a
and dword [ebp - 0x34], 0xfffffffe
lea ecx, [ebp - 0x54]
call fcn.00402693
test bl, bl
jne 0x4079cf
cmp byte [esi + 0x41], bl
je 0x407a8f
test edi, edi
jne 0x407951
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.0040722e
jmp 0x407951
mov bl, 1
jmp 0x4079d1
mov al, 1
call fcn.0046e3c0
ret
Function at 0x40856f
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
sub esp, 0x50
lea ebp, [esp - 4]
mov eax, dword [0x4eafb0]
xor eax, ebp
mov dword [ebp + 0x50], eax
push 0x44
mov eax, 0x4a9366
call fcn.0046e2a0
lea ecx, [ebp + 0x10]
call fcn.0040298f
xor ebx, ebx
lea ecx, [ebp + 0x30]
mov dword [ebp - 4], ebx
call fcn.0040298f
mov edi, 0x4ee620
push edi
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0040309e
push str.ImageAutopatchUpDataLuch.exe
lea ecx, [ebp + 0x10]
call fcn.00403102
push 0x4eeca8
lea ecx, [ebp + 0x30]
call fcn.0040309e
push 0x4c2054
lea ecx, [ebp + 0x30]
call fcn.00403102
mov esi, 0x4eeda8
push esi
lea ecx, [ebp + 0x30]
call fcn.00403102
push 0x4c2074
lea ecx, [ebp + 0x30]
call fcn.00403102
push edi
lea ecx, [ebp + 0x30]
call fcn.00403102
push 0x4bf8d0
lea ecx, [ebp + 0x30]
call fcn.00403102
push esi
lea ecx, [ebp + 0x30]
call fcn.00403102
push 0x10
pop edi
push edi
lea eax, [ebp]
push ebx
push eax
call fcn.0046ae40
push 0x44
pop esi
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.0046ae40
mov ecx, dword [ebp + 0x38]
add esp, 0x18
mov dword [ebp - 0x50], esi
cmp dword [ebp + 0x4c], edi
jae 0x408642
lea ecx, [ebp + 0x38]
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0x2c], edi
jae 0x40864d
lea eax, [ebp + 0x18]
lea edx, [ebp]
push edx
lea edx, [ebp - 0x50]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x408679
push dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 4]
call esi
jmp 0x408693
push ebx
push ebx
push str.Failed_to_run
call fcn.00428e70
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
push ebx
push edi
call fcn.0042e230
mov ecx, eax
call fcn.0041e160
push ebx
push 1
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], bl
call fcn.004027c0
lea ecx, [ebp + 0x30]
call fcn.004023b9
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x10]
call fcn.004027c0
lea ecx, [ebp + 0x10]
call fcn.004023b9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x50]
xor ecx, ebp
call fcn.0046be30
add ebp, 0x54
leave
ret
Function at 0x40be5a
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4eafb0]
xor eax, ebp
mov dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x194]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x7c], eax
cmp eax, ebx
je 0x40bf13
push 0x4bfa64
push eax
call fcn.0046eef0
pop ecx
pop ecx
mov dword [esi + 4], eax
cmp eax, ebx
je 0x40bf13
push 2
push ebx
push eax
call fcn.0046b590
push dword [esi + 4]
call fcn.0046e920
push ebx
push ebx
push dword [esi + 4]
mov dword [ebp - 0x80], eax
call fcn.0046b590
add esp, 0x1c
mov ecx, esi
call fcn.0040bbf2
push dword [esi + 4]
lea edi, [esi + 0x10]
push 1
push 0xc
push edi
call fcn.0046c550
mov eax, dword [edi]
sub eax, dword [esi + 0x18]
add esp, 0x10
sub eax, dword [esi + 0x14]
lea ecx, [esi + 0x12a]
push eax
call fcn.00401fa2
test eax, eax
jne 0x40bf2f
push 0x28
push str..MHFile.cpp
call fcn.0043a1a0
test eax, eax
je 0x40bf05
int3
push ebx
push ebx
push str.Bin_File_Version_Error_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046be30
add ebp, 0x18c
leave
ret 4
lea ecx, [esi + 0x12a]
call fcn.00401f89
test eax, eax
je 0x40bfd5
mov edi, dword [ebp - 0x80]
add edi, 0xfffffff2
push edi
call fcn.0040f8a0
pop ecx
mov dword [esi + 0x1e], eax
cmp eax, ebx
jne 0x40bf69
push 0x32
push str..MHFile.cpp
call fcn.0043a1a0
test eax, eax
je 0x40bf13
int3
push edi
push ebx
push eax
call fcn.0046ae40
add esp, 0xc
push dword [esi + 0x14]
lea ecx, [esi + 0x12a]
push edi
push dword [esi + 0x1e]
push dword [esi + 4]
call fcn.00401fe3
test eax, eax
jne 0x40bfc4
mov ecx, esi
call fcn.0040bbf2
push 0x39
push str..MHFile.cpp
call fcn.0043a1a0
test eax, eax
je 0x40bfa5
int3
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push str.File_Open_Error_:__s
push eax
call fcn.00470c10
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
jmp 0x40bf0c
push dword [esi + 4]
call fcn.0046e6c0
xor edi, edi
pop ecx
mov dword [esi + 4], ebx
inc edi
jmp 0x40c043
push dword [esi + 4]
xor edi, edi
inc edi
push edi
lea eax, [esi + 0x1c]
push edi
push eax
call fcn.0046c550
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, ebx
je 0x40c009
push eax
call fcn.0040f8a0
push dword [esi + 4]
mov dword [esi + 0x1e], eax
push dword [esi + 0x18]
push edi
push eax
call fcn.0046c550
add esp, 0x14
push dword [esi + 4]
lea eax, [esi + 0x1d]
push edi
push edi
push eax
call fcn.0046c550
push dword [esi + 4]
call fcn.0046e6c0
add esp, 0x14
mov ecx, esi
mov dword [esi + 4], ebx
call fcn.0040bcad
test eax, eax
je 0x40bf13
mov ecx, esi
call fcn.0040bcf7
test eax, eax
je 0x40bf13
mov dword [esi + 0x22], edi
mov eax, edi
jmp 0x40bf15