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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4b1b4e
cmp dword [ebp + 0x14], edi
je 0x4b1b4e
cmp ecx, edi
jne 0x4b1b55
call fcn.004b9a00
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004b2210
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4b1b69
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4b1b8a
cmp ebx, 0xffffffff
je 0x4b1b79
push ebx
push edi
push ecx
call fcn.004b3d60
add esp, 0xc
cmp esi, edi
je 0x4b1b36
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4b1b36
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4b1ba6
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4b1bad
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4b1c9e
test word [esi + 0xc], 0x10c
je 0x4b1c01
mov eax, dword [esi + 4]
test eax, eax
je 0x4b1c01
jl 0x4b1cff
cmp ebx, eax
mov edi, ebx
jb 0x4b1bd2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4b1ca6
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b3dda
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4b1c96
cmp ebx, dword [ebp - 0xc]
jb 0x4b1c6e
cmp dword [ebp - 0xc], 0
je 0x4b1c2b
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4b1c20
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4b1c27
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4b1c36
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4b1c36
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4b1cd2
push eax
push dword [ebp - 8]
push esi
call fcn.004b5fc0
pop ecx
push eax
call fcn.004c0196
add esp, 0xc
test eax, eax
je 0x4b1d11
cmp eax, 0xffffffff
je 0x4b1cff
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4b1c96
push esi
call fcn.004bfab5
cmp eax, 0xffffffff
pop ecx
je 0x4b1d03
cmp dword [ebp - 4], 0
je 0x4b1cd2
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4b1bb5
mov eax, dword [ebp + 0x14]
jmp 0x4b1b50
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b1cbd
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004b3d60
add esp, 0xc
call fcn.004b9a00
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4b1b46
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b1ce8
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004b3d60
add esp, 0xc
call fcn.004b9a00
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4b1b46
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4b1b50
or dword [esi + 0xc], 0x10
jmp 0x4b1d03
Function at 0x4b71d2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4b71ff
call fcn.004b9a13
mov dword [eax], esi
call fcn.004b9a00
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004b2210
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4b71db
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b722e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b9a26
pop ecx
call fcn.004b9a00
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4b7255
test al, 1
je 0x4b7255
test byte [esp + 0xc], 2
je 0x4b7255
call fcn.004b9a13
mov dword [eax], 5
call fcn.004b9a00
mov dword [eax], 0xd
jmp 0x4b7225
xor eax, eax
pop esi
ret

Function at 0x4b89e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55a18c]
jne 0x4b89ef
repz ret
jmp fcn.004c8d8d

Function at 0x4c3607
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x55af18]
je 0x4c3622
inc edi
cmp edi, 0x17
jb 0x4c3613
cmp edi, 0x17
jae 0x4c37a2
push ebp
push 3
call fcn.004cdfe3
cmp eax, 1
pop ecx
je 0x4c376e
push 3
call fcn.004cdfe3
test eax, eax
pop ecx
jne 0x4c3656
cmp dword [0x55a188], 1
je 0x4c376e
cmp ebx, 0xfc
je 0x4c37a1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x55f778
push ebp
call fcn.004b73a0
add esp, 0xc
test eax, eax
je 0x4c368c
push esi
push esi
push esi
push esi
push esi
call fcn.004b2114
add esp, 0x14
push 0x104
mov esi, 0x55f791
push esi
push 0
mov byte [0x55f895], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c36d0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004b73a0
add esp, 0xc
test eax, eax
je 0x4c36d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004b2114
add esp, 0x14
push esi
call fcn.004b12d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c3715
push esi
call fcn.004b12d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x55fa8c
push 0x52ec4c
sub ecx, eax
push ecx
push eax
call fcn.004ca29d
add esp, 0x14
test eax, eax
je 0x4c3715
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004b2114
add esp, 0x14
jmp 0x4c3717
xor esi, esi
push 0x52ec48
push ebx
push ebp
call fcn.004caf1a
add esp, 0xc
test eax, eax
je 0x4c3737
push esi
push esi
push esi
push esi
push esi
call fcn.004b2114
add esp, 0x14
push dword [edi*8 + 0x55af1c]
push ebx
push ebp
call fcn.004caf1a
add esp, 0xc
test eax, eax
je 0x4c3759
push esi
push esi
push esi
push esi
push esi
call fcn.004b2114
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004cde26
add esp, 0xc
jmp 0x4c37a1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4c37a1
cmp ebp, 0xffffffff
je 0x4c37a1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x55af1c]
push dword [esi]
call fcn.004b12d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4cde26
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004bd5dd
xor ebx, ebx
cmp dword [0x5600d0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4cdefc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4cdfdc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4cdfdc
push eax
call fcn.004bd56f
mov dword [esp], 0x52f770
push edi
mov dword [0x5600d0], eax
call esi
push eax
call fcn.004bd56f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5600d4], eax
call esi
push eax
call fcn.004bd56f
mov dword [0x5600d8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004b8524
test eax, eax
pop ecx
pop ecx
je 0x4cdeca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b2114
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4cdefc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004bd56f
cmp eax, ebx
pop ecx
mov dword [0x5600e0], eax
je 0x4cdefc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004bd56f
pop ecx
mov dword [0x5600dc], eax
mov eax, dword [0x5600dc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4cdf81
cmp dword [0x5600e0], ecx
je 0x4cdf81
push eax
call fcn.004bd5e6
push dword [0x5600e0]
mov esi, eax
call fcn.004bd5e6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4cdf81
cmp edi, ebx
je 0x4cdf81
call esi
cmp eax, ebx
je 0x4cdf4e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4cdf4e
test byte [ebp - 0x18], 1
jne 0x4cdf81
lea eax, [ebp - 0x10]
push eax
call fcn.004b855b
test eax, eax
pop ecx
je 0x4cdf69
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b2114
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4cdf78
or dword [ebp + 0x10], 0x200000
jmp 0x4cdfbc
or dword [ebp + 0x10], 0x40000
jmp 0x4cdfbc
mov eax, dword [0x5600d4]
cmp eax, dword [ebp - 8]
je 0x4cdfbc
push eax
call fcn.004bd5e6
cmp eax, ebx
pop ecx
je 0x4cdfbc
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4cdfbc
mov eax, dword [0x5600d8]
cmp eax, dword [ebp - 8]
je 0x4cdfbc
push eax
call fcn.004bd5e6
cmp eax, ebx
pop ecx
je 0x4cdfbc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5600d0]
call fcn.004bd5e6
cmp eax, ebx
pop ecx
je 0x4cdfdc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4cdfde
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d0e90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522cce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x28], ecx
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.004da910
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004084c0
movzx ecx, al
test ecx, ecx
je 0x4d0ee6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
jmp 0x4d1083
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0040b2a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4d0f0d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
jmp 0x4d1083
lea ecx, [ebp - 0x10]
call fcn.0040c690
sub eax, dword [ebp - 0x18]
sub eax, 1
push eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040b410
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004084c0
movzx eax, al
test eax, eax
je 0x4d0f5b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
jmp 0x4d1083
push 0
push 0x530a14
lea ecx, [ebp - 0x1c]
call fcn.00416530
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4d0f93
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
jmp 0x4d1083
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040b4a0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0040c650
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a960
mov byte [ebp - 4], 3
push 0
push 0x530a20
lea ecx, [ebp - 0x14]
call fcn.00416530
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4d101c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040c650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
jmp 0x4d1083
lea ecx, [ebp - 0x14]
call fcn.0040c690
sub eax, dword [ebp - 0x18]
sub eax, 5
push eax
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040b410
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00408510
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0040c650
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040c650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d10a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523356
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x10]
push eax
call fcn.004daa70
add esp, 4
mov dword [ebp - 4], 0
push 0x530898
lea ecx, [ebp - 0x10]
call fcn.0040b130
lea ecx, [ebp - 0x10]
call fcn.00423af0
push eax
push 0x640
push str.TryNo
push 0x5308c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4d3790
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xffffffff
mov word [ebp - 0x218], 0
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004b3d60
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4d381c
jmp 0x4d389e
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 8], eax
push 0
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 8]
push eax
push 0
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 0x21c]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
jne 0x4d385f
jmp 0x4d389e
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 8]
push ecx
push 0
push 0
push 4
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x21c]
cmp dword [edx + 4], 0
jne 0x4d3897
jmp 0x4d389e
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x4d38ae
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4d44c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522d44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040a960
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040a960
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x24]
call fcn.0040a960
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.004d4210
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.0040c650
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.0040c650
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
call fcn.0040c650
lea ecx, [ebp - 0x10]
call fcn.004084c0
movzx ecx, al
test ecx, ecx
je 0x4d4577
mov byte [ebp - 0x25], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
mov al, byte [ebp - 0x25]
jmp 0x4d462a
lea ecx, [ebp - 0x14]
call fcn.0040c630
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 0
jmp 0x4d4595
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0x14]
call fcn.0040f310
cmp dword [ebp - 0x18], eax
jae 0x4d4608
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00408510
lea ecx, [ebp - 0x14]
push ecx
call fcn.0050cca0
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0042ea30
push eax
lea ecx, [ebp - 0x14]
call fcn.0040bfd0
lea ecx, [ebp - 0x14]
call fcn.00423af0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d4606
mov byte [ebp - 0x26], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
mov al, byte [ebp - 0x26]
jmp 0x4d462a
jmp 0x4d458c
mov byte [ebp - 0x27], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
mov al, byte [ebp - 0x27]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d4da0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
push 0
push 0
push 0x532640
push 0x532694
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x4d4dd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
push 0
push 0
push str.https:__winzip.imeitools.com_license.html
push 0x532634
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x4d4e50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov ecx, dword [ebp - 4]
call fcn.004875b0
cmp dword [ebp + 8], 0x61
je 0x4d4e6d
cmp dword [ebp + 8], 0x41
jne 0x4d4e93
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x80
je 0x4d4e93
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x528
call fcn.00487c30
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4d4f30
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004d4e00
add esp, 4
test eax, eax
je 0x4d4fd8
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x18]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4d4f77
jmp 0x4d4fd8
push 0
push 0x100000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004c5ed0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0x7fffffff
fild qword [ebp - 0x28]
and dword [ebp - 0x2c], 0x80000000
mov dword [ebp - 0x30], 0
fild qword [ebp - 0x30]
fchs
faddp st(1)
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fdiv qword [0x5414d8]
fstp qword [ebp - 0x20]
fld1
fcomp qword [ebp - 0x20]
fnstsw ax
test ah, 0x41
jp 0x4d4fd8
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4d5230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522519
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x220]
call fcn.0040c630
mov dword [ebp - 4], 0
mov word [ebp - 0x21c], 0
push 0x208
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004b3d60
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4d52d7
lea edx, [ebp - 0x21c]
push edx
call fcn.004b477a
add esp, 4
test eax, eax
je 0x4d52d7
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x220]
call fcn.0040ae00
lea edx, [ebp - 0x220]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040a580
mov eax, dword [ebp - 0x224]
or eax, 1
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040c650
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4d55b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x558], 0
jne 0x4d5600
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.004d54f0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
call fcn.00423af0
push eax
push 2
push 0x5314b0
push 0x5314bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 8]
mov dword [edx + 0x558], eax
lea ecx, [ebp - 4]
call fcn.0040c650
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x558]
mov esp, ebp
pop ebp
ret
Function at 0x4d5db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
call fcn.00423af0
push eax
lea eax, [ebp - 4]
push eax
call fcn.004dac00
add esp, 8
lea ecx, [ebp - 4]
call fcn.0040c650
mov ecx, dword [ebp + 8]
call fcn.0040c690
cmp eax, 3
jl 0x4d5e07
mov ecx, dword [ebp + 8]
call fcn.00423af0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d5e11
mov ecx, dword [ebp + 8]
call fcn.00423af0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 1
jne 0x4d5e11
mov eax, 1
jmp 0x4d5ec6
push 3
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b4a0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
call fcn.00423af0
push eax
call fcn.004d4e00
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 5], al
lea ecx, [ebp - 0xc]
call fcn.0040c650
movzx edx, byte [ebp - 5]
test edx, edx
je 0x4d5e54
mov eax, 2
jmp 0x4d5ec6
mov eax, dword [ebp + 8]
push eax
call fcn.004d5320
add esp, 4
test eax, eax
je 0x4d5e6b
mov eax, 3
jmp 0x4d5ec6
push 3
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b4a0
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
call fcn.00423af0
push eax
call fcn.004d4f30
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x14]
call fcn.0040c650
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x4d5eae
mov eax, 4
jmp 0x4d5ec6
mov ecx, dword [ebp + 8]
call fcn.0040c690
cmp eax, 0x96
jle 0x4d5ec4
mov eax, 5
jmp 0x4d5ec6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4d6260
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5239c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x454
mov dword [ebp - 0x458], ecx
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004b3d60
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 0x11
mov eax, dword [ebp - 0x458]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea ecx, [ebp - 0x224]
call fcn.0040c630
mov dword [ebp - 4], 0
push 0x105
lea ecx, [ebp - 0x224]
call fcn.0040a680
push 0
lea ecx, [ebp - 0x224]
call fcn.0040a630
push 0x5325c4
lea ecx, [ebp - 0x224]
call fcn.0040ae00
mov edx, dword [ebp - 0x458]
mov eax, dword [edx + 4]
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x240], ecx
lea ecx, [ebp - 0x224]
call fcn.00419a00
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0x5325d0
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4d6484
mov word [ebp - 0x44c], 0
push 0x206
push 0
lea eax, [ebp - 0x44a]
push eax
call fcn.004b3d60
add esp, 0xc
lea ecx, [ebp - 0x44c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x450]
call fcn.0040c630
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.004dac00
add esp, 8
mov dword [ebp - 0x45c], eax
mov edx, dword [ebp - 0x45c]
mov dword [ebp - 0x460], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x460]
push eax
lea ecx, [ebp - 0x450]
call fcn.0040ea80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x454]
call fcn.0040c650
mov ecx, dword [ebp - 0x458]
add ecx, 0x96c
push ecx
lea ecx, [ebp - 0x450]
call fcn.0040ea80
lea ecx, [ebp - 0x450]
call fcn.00423af0
push eax
mov ecx, dword [ebp - 0x458]
add ecx, 0x528
call fcn.0048cda0
push 0
lea edx, [ebp - 0x450]
push edx
call fcn.004d5db0
add esp, 4
push eax
push 0x46c
mov ecx, dword [ebp - 0x458]
add ecx, 4
call fcn.0045cf70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call fcn.0040c650
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0040c650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret