joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2102558d
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push 0x14
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.21053be0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x210255b5
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov dword [ebp - 8], 0x13a
push 0
lea edx, [ebp - 4]
push edx
push 0x200
lea eax, [ebp - 0x208]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x210255e9
xor eax, eax
jmp 0x2102569e
cmp dword [ebp - 4], 0x14
jae 0x210255fa
mov eax, dword [ebp - 4]
mov dword [ebp - 0x22c], eax
jmp 0x21025604
mov dword [ebp - 0x22c], 0x14
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.210538a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
test edx, edx
jne 0x2102563b
cmp dword [ebp + 0x10], 0
je 0x21025637
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
jmp 0x2102569e
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx + 0xc]
cmp edx, 1
je 0x21025698
mov eax, dword [ebp + 0xc]
push eax
push 0x20
lea ecx, [ebp - 0x228]
push ecx
call fcn.21003071
push 0x14
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.21053be0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0xb
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.21003071
mov edx, dword [ebp + 0xc]
mov word [edx + 0xc], 1
push 0
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.21051403
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x210299e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov dword [ebp - 0x318], ecx
lea eax, [ebp - 0x314]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x21029a0d
jmp 0x21029b2c
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x314]
push edx
push 0x104
lea eax, [ebp - 0x10c]
push eax
call fcn.21003265
cmp dword [ebp - 4], 0
jne 0x21029a46
lea ecx, [ebp - 0x10c]
push ecx
call fcn.21050c3e
test eax, eax
jne 0x21029a46
jmp 0x21029b2c
lea edx, [ebp - 0x314]
push edx
push 0x39
push 0x30
call fcn.2104939b
mov ecx, dword [ebp - 0x318]
mov byte [ecx + 0x1c8], al
mov edx, dword [ebp - 0x318]
movsx eax, byte [edx + 0x1c8]
test eax, eax
jne 0x21029a8f
lea ecx, [ebp - 0x314]
push ecx
push 0x5a
push 0x44
call fcn.2104939b
mov edx, dword [ebp - 0x318]
mov byte [edx + 0x1c8], al
mov eax, dword [ebp - 0x318]
movsx ecx, byte [eax + 0x1c8]
test ecx, ecx
jne 0x21029aa5
jmp 0x21029b2c
push 0
push 2
push 0x21089584
push 1
mov ecx, dword [ebp - 0x318]
add ecx, 0x1cc
call fcn.21046455
cmp eax, 1
je 0x21029ac8
jmp 0x21029b2c
push 0
push 0x21089544
mov ecx, dword [ebp - 0x318]
add ecx, 0x1cc
call fcn.21046408
cmp eax, 1
je 0x21029ae7
jmp 0x21029b2c
mov ecx, dword [ebp - 0x318]
add ecx, 0x1cc
call fcn.210465dc
mov edx, dword [ebp - 0x318]
mov eax, dword [edx + 0x1f8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x318]
movsx dx, byte [ecx + 0x1c8]
mov eax, dword [ebp - 8]
mov word [eax], dx
mov ecx, dword [ebp - 0x318]
add ecx, 0x1cc
call fcn.2104663a
mov esp, ebp
pop ebp
ret

Function at 0x2102a4e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x210709ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 0x11c]
add ecx, 4
call fcn.21039ebc
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [str.FppLicense3.ini]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.210134f1
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x11c]
add edx, 8
push edx
call fcn.210537b0
add esp, 8
push 0xc
call fcn.210636c3
add esp, 4
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x118], 0
je 0x2102a598
push 0x210894c4
mov ecx, dword [ebp - 0x118]
call fcn.21030bb0
mov dword [ebp - 0x120], eax
jmp 0x2102a5a2
mov dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x114]
mov dword [ecx], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x2102c780
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret 4
Function at 0x21030d80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x21070e89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
push 0
push 0
mov ecx, dword [ebp - 0x24]
call fcn.21009710
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x21073ddc
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp + 8]
push ecx
push str.psapi.dll
mov ecx, dword [ebp - 0x24]
call fcn.21009836
test eax, eax
jne 0x21030e2e
jmp 0x21030f23
push str.EnumProcesses
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x14], edx
push str.EnumProcessModules
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x18], eax
push str.GetModuleBaseNameA
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x1c], ecx
push str.GetModuleFileNameExA
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x20], edx
push str.GetModuleInformation
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x14], 0
je 0x21030ef1
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x18], 0
je 0x21030ef1
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x1c], 0
je 0x21030ef1
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x20], 0
je 0x21030ef1
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x24], 0
jne 0x21030f23
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x21033c2f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
add eax, 2
push eax
mov ecx, dword [ebp - 0x20]
call fcn.21033a75
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x21033d16
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + 4]
add edx, 1
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x14]
and eax, 0xffff
imul eax, eax, 0x50
push eax
call fcn.210636c3
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x21033c90
xor eax, eax
jmp 0x21033e00
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ax, word [edx + 4]
test eax, eax
je 0x21033cbd
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + 4]
imul edx, edx, 0x50
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.210538a0
add esp, 0xc
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cx, word [eax + 4]
imul ecx, ecx, 0x50
mov edx, dword [ebp - 0x10]
add edx, ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
mov ecx, 0x14
mov edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
jne 0x21033cf8
mov ecx, dword [ebp - 0x20]
call fcn.21033fc1
mov edx, dword [ebp - 4]
mov word [edx], ax
mov ecx, dword [ebp - 0x20]
call fcn.21033f8c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x20]
mov ax, word [ebp - 0x14]
mov word [edx + 4], ax
jmp 0x21033d43
mov ecx, dword [ebp - 4]
mov dx, word [ecx]
mov word [ebp - 0x18], dx
mov esi, dword [ebp + 8]
mov ecx, 0x14
mov edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
jne 0x21033d43
mov edx, dword [ebp - 4]
mov ax, word [ebp - 0x18]
mov word [edx], ax
push 1
mov ecx, dword [ebp + 8]
add ecx, 2
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.21034417
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x21033d64
xor eax, eax
jmp 0x21033e00
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x21033d94
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx]
mov dword [ebp - 0xc], edx
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x21083f50
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov edx, dword [ebp + 8]
add edx, 0x44
push edx
push 4
push 0
push 0x21083f54
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov ecx, dword [ebp + 8]
add ecx, 0x48
push ecx
push 4
push 0
push 0x21083f5c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x4c]
mov dword [ebp - 0xc], ecx
push 4
lea edx, [ebp - 0xc]
push edx
push 4
push 0
push 0x21083f64
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x21034a64
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2107114a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x68], 0
jne 0x21034ab9
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x68], 0
jne 0x21034ab9
push str.CreateEvent
call fcn.210107ec
xor eax, eax
jmp 0x21034b7d
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x54], 0xffffffff
jne 0x21034b78
push 0
lea ecx, [ebp - 0x34]
call fcn.2104f534
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.2104f6bc
push eax
push 0
push 0x800
push 0x800
push 0xff
push 6
push 0x40000003
mov ecx, dword [ebp - 0x40]
add ecx, 0x8c
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x54], eax
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x54], 0xffffffff
jne 0x21034b3c
push str.CreateNamedPipe
call fcn.210107ec
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.2104f69b
mov eax, dword [ebp - 0x38]
jmp 0x21034b7d
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x40]
add eax, 0x58
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.2104f69b
mov eax, dword [ebp - 0x3c]
jmp 0x21034b7d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x2103a021
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0x7fff
cmp dword [0x2108afc8], 0
je 0x2103a045
cmp dword [ebp - 8], 0xffff
jbe 0x2103a045
jmp 0x2103a0b8
push 0
push 2
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x108
call fcn.21026d71
test eax, eax
jne 0x2103a063
xor eax, eax
jmp 0x2103a0d8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x2108b6e0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x2103a09c
xor eax, eax
jmp 0x2103a0d8
mov ecx, dword [ebp - 8]
sub ecx, 2
cmp dword [ebp - 4], ecx
jb 0x2103a0b8
mov edx, dword [ebp - 8]
add edx, 0x7fff
mov dword [ebp - 8], edx
jmp 0x2103a031
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x120], eax
mov ecx, dword [ebp - 0x14]
call fcn.2103a0de
mov esp, ebp
pop ebp
ret 4

Function at 0x2103a251
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x210712e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x40], ecx
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp + 0xc]
call fcn.21062efd
lea ecx, [ebp - 0x24]
call fcn.21026c90
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0x7fff
cmp dword [0x2108afc8], 0
je 0x2103a2a8
cmp dword [ebp - 0x28], 0xffff
jbe 0x2103a2a8
jmp 0x2103a34d
push 0
push 2
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
call fcn.21026d71
test eax, eax
jne 0x2103a2da
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.21026d5e
mov eax, dword [ebp - 0x34]
jmp 0x2103a368
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x40]
add edx, 4
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x2108b6e4
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x2103a324
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.21026d5e
mov eax, dword [ebp - 0x38]
jmp 0x2103a368
mov eax, dword [ebp - 0x28]
sub eax, 2
cmp dword [ebp - 0x30], eax
jb 0x2103a340
mov ecx, dword [ebp - 0x28]
add ecx, 0x7fff
mov dword [ebp - 0x28], ecx
jmp 0x2103a291
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.210309ef
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.21026d5e
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x2103a3f8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 4
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x2103a41e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x7fff
cmp dword [0x2108afc8], 0
je 0x2103a44c
cmp dword [ebp - 8], 0xffff
jbe 0x2103a44c
jmp 0x2103a4e2
mov eax, dword [ebp - 8]
push eax
call fcn.210636c3
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x2103a475
push str.CPrivateProfile::GetSection_could_not_allocate_a_buffer
call fcn.21010778
xor eax, eax
jmp 0x2103a4e5
mov edx, dword [ebp - 0x1c]
add edx, 4
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x2103a4ad
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.210636ec
add esp, 4
xor eax, eax
jmp 0x2103a4e5
mov edx, dword [ebp - 8]
sub edx, 2
cmp dword [ebp - 0xc], edx
jb 0x2103a4e2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.210636ec
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
add edx, 0x7fff
mov dword [ebp - 8], edx
jmp 0x2103a435
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x2103a4eb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0x200
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x124]
push edx
push 0x2108b6e8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x2103a523
xor eax, eax
jmp 0x2103a52c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x124]
mov esp, ebp
pop ebp
ret 8

Function at 0x2103a532
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 4
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x2108b6ec
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x2103a914
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x21071343
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp - 0x114]
add ecx, 4
call fcn.21039ebc
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x114]
add ecx, 0x12c
call fcn.21041200
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
mov dword [eax], 0x21073e74
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea edx, [ebp - 0x110]
push edx
push str.wininit.ini
lea eax, [ebp - 0x110]
push eax
call fcn.210134f1
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x114]
add edx, 8
push edx
call fcn.210537b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x2103a9d1
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [0x2108afc8], 0
je 0x2103a9ef
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.2103aa03
jmp 0x2103a9fd
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esp, ebp
pop ebp
ret 4
Function at 0x2103ad1a
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x2c], ecx
cmp dword [0x2108afc8], 0
je 0x2103ae46
push 0x30c
call fcn.210636c3
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x104
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, 0x104
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
push 0x104
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x2103ad91
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.210537b0
add esp, 8
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.21013097
test eax, eax
jne 0x2103addc
push 0x1001
mov eax, dword [ebp + 0xc]
push eax
call fcn.21012eeb
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x2103adce
push 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], eax
jmp 0x2103add5
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
push 0x104
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x2103ae03
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.210537b0
add esp, 8
cmp dword [ebp - 4], 0
je 0x2103ae14
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.210146fc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str.rename
mov ecx, dword [ebp - 0x2c]
add ecx, 4
call fcn.2103a5fe
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.210636ec
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x2103ae56
push 5
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esp, ebp
pop ebp
ret 8