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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x405b3e
push 0x19
push 0x426d186
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405b55
mov eax, 0x617d55
jmp 0x405c04
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x6180c1]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.0040116b
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.004e4310
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405ba3
push ebx
call fcn.004e082e
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00405c1c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405be5
push 0x136
push 0x426d186
push 6
call fcn.004e0834
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x405bff
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004e0828
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x405c04
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405c15
push ebx
call fcn.004e082e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4060d9
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x406120
push 0x19
push 0x426c6b3
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40615b
push 0x46
push 0x426c6b3
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push 1
push dword [ebp - 4]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x406192
push 0x6a
push 0x426c6b3
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4061be
push 0xa7
push 0x426c6b3
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 4]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4061f5
push 0xc2
push 0x426c6b3
push 6
call fcn.004e0834
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x4061fd
mov esp, ebp
pop ebp
ret 8
Function at 0x4168f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.004e3630
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.00416973
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x416968
push 0x60
push 0x426c669
push 6
call fcn.004e0834
add esp, 0xc
jmp 0x41696d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4468a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop
nop
cmp dword [ebp - 4], esp
je 0x4468d7
push 0x24
push 0x4267c8f
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
mov eax, 0
setne al
jmp 0x4468eb
mov esp, ebp
pop ebp
ret 4

Function at 0x446c5a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x446ca1
push 0
push 0x4267c7e
push 6
call fcn.004e0834
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x446cac
mov esp, ebp
pop ebp
ret 4

Function at 0x446cb2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x1bc
call fcn.004e4310
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x446cfc
push ebx
call fcn.004e082e
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x446d19
add eax, 8
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x446d43
push 0x34
push 0x4267c7f
push 6
call fcn.004e0834
add esp, 0xc
mov eax, dword [ebp - 8]
cmp dword [ebp + 0xc], eax
jne 0x446d6e
mov eax, dword [ebp - 4]
test eax, eax
je 0x446d69
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004e0828
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x446da9
push 0x80000301
push 0
push dword [ebp - 8]
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x446d8b
mov eax, 0x617d55
push eax
push 2
mov ebx, 0x1a0
call fcn.004e4d30
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x446da9
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x446dba
push ebx
call fcn.004e082e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x448019
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push VariantClear
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x448045
mov eax, 0x617d55
push eax
push 1
mov ebx, 0x194
call fcn.004e4300
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x448076
add eax, 8
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4480a0
push 0x4d
push 0x4267c80
push 6
call fcn.004e0834
add esp, 0xc
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
jmp 0x4480ad
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4480b3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
push 8
call fcn.004e0828
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0x107
call fcn.004e0828
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x94afa4
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0xff
rep stosb byte es:[edi], al
cmp dword [0xb5eebe], 0
jne 0x448161
mov dword [ebp - 0xc], esp
push str.shell32.dll
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x448145
push 0x4f
push 0x4267caf
push 6
call fcn.004e0834
add esp, 0xc
mov dword [0xb5eebe], eax
cmp dword [0xb5eebe], 0
jne 0x448161
mov eax, 0x51934a
jmp 0x4482c4
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x184
call fcn.004e4570
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x448196
push ebx
call fcn.004e082e
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 8]
push eax
push 0x103
call fcn.004e0828
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0xff
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x448206
push pe_nt_image_headers32
push 0x4267caf
push 6
call fcn.004e0834
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.004e34f0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x448247
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x448245
imul eax, dword [edi]
jmp 0x44823a
mov ecx, eax
cmp ecx, 0xff
jle 0x448254
mov ecx, 0xff
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0xff
call fcn.004e082e
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4482a3
push 0x13a
push 0x4267caf
push 6
call fcn.004e0834
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x4482bf
push eax
mov ebx, eax
call fcn.00401ac0
inc eax
push eax
call fcn.004e0828
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4482c4
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4482d5
push ebx
call fcn.004e082e
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.004e082e
add esp, 4
pop ebx
call fcn.004e082e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x471dcc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
cmp dword [ebp - 4], esp
je 0x471e03
push 0x12
push 0x426c57d
push 6
call fcn.004e0834
add esp, 0xc
jmp 0x471e08
mov esp, ebp
pop ebp
ret 4

Function at 0x475e78
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x475eca
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x475ec2
push 0x4f
push 0x426c618
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x475f03
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x475f00
push 0x7d
push 0x426c618
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x475f17
mov eax, 0
jmp 0x475f7f
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x475f48
push 0x10b
push 0x426c618
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x475f77
push 0x12f
push 0x426c618
push 6
call fcn.004e0834
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x475f7f
mov esp, ebp
pop ebp
ret 8
Function at 0x4773c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x477408
mov eax, 0x617d55
push eax
push 1
mov ebx, 0x194
call fcn.004e4300
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x47742d
jmp 0x4775b5
push dword [ebp + 8]
call fcn.0043fea6
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x6180c1]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.0040116b
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x477481
push 0x129
push 0x42620fd
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x6180c1]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.0040116b
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x477586
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040116b
push eax
call fcn.00440086
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x477524
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x47751a
push 0x222
push 0x42620fd
push 6
call fcn.004e0834
add esp, 0xc
jmp 0x477586
cmp word [ebp - 0x14], 0x5c
jne 0x47756d
cmp dword [ebp - 0x18], 0
jle 0x47756a
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x47756a
push 0x2c3
push 0x42620fd
push 6
call fcn.004e0834
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.004775bb
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x4774aa
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4775b5
push 0x374
push 0x42620fd
push 6
call fcn.004e0834
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x496953
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
jne 0x49697b
mov dword [ebp + 0xc], 0xffffffff
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x4bf
push dword [ebp + 0xc]
push 0
lea eax, [ebp + 8]
push eax
push 1
xor eax, eax
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4969cf
push 0xb4
push 0x426c712
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x496a2a
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x24]
fsub qword [ebp - 0x2c]
fcomp qword [0x6180d1]
fnstsw ax
test ah, 1
jne 0x496a2a
mov dword [ebp - 8], 0x102
push 0
mov ebx, 0x350
call fcn.004e4500
add esp, 4
cmp dword [ebp - 8], 0
je 0x496a5a
cmp dword [ebp - 8], 0x102
je 0x496a5a
mov eax, 1
jmp 0x496a5f
mov eax, 0
test eax, eax
jne 0x496990
cmp dword [ebp - 8], 0
mov eax, 0
sete al
jmp 0x496a78
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a14da
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x4a151a
push 0
push 0x426c688
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x4a1549
push 0x33
push 0x426c688
push 6
call fcn.004e0834
add esp, 0xc
jmp 0x4a154e
mov esp, ebp
pop ebp
ret 4
Function at 0x4ab2d3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4ab31b
mov eax, 0x617d55
push eax
push 1
mov ebx, 0x194
call fcn.004e4300
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x4ab340
jmp 0x4ab4c8
push dword [ebp + 8]
call fcn.00405c1c
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x6180c1]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.0040116b
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4ab394
push 0x129
push 0x426d168
push 6
call fcn.004e0834
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x6180c1]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.0040116b
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4ab499
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040116b
push eax
call fcn.00402f9f
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x4ab437
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4ab42d
push 0x222
push 0x426d168
push 6
call fcn.004e0834
add esp, 0xc
jmp 0x4ab499
cmp word [ebp - 0x14], 0x5c
jne 0x4ab480
cmp dword [ebp - 0x18], 0
jle 0x4ab47d
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4ab47d
push 0x2c3
push 0x426d168
push 6
call fcn.004e0834
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.004ab4ce
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x4ab3bd
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4ab4c8
push 0x374
push 0x426d168
push 6
call fcn.004e0834
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x4e3a60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4e3af2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4e3ae4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4e3adc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4e3aa5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4e3b00
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4e3b69
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004e33c0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x4e3dc0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x4e4100
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00507b81
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4e416a
push esi
lea edi, [eax + 0x400]
call fcn.00507baa
push edi
call fcn.00507b81
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4e413a
push esi
xor edi, edi
call dword [0xb5fd18]
add esp, 4
test eax, eax
je 0x4e4186
push eax
push esi
call fcn.004e9ce0
add esp, 8
mov edi, eax
push esi
call fcn.00507baa
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret