joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101932b3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x101932ac.8
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x1019334c]
jmp dword [ecx*4 + 0x10193344]
mov edx, dword [ebp - 0x210]
or edx, 0x100
mov dword [ebp - 0x210], edx
cmp dword [ebp + 0x10], 0
je 0x101932dc
mov eax, dword [ebp - 0x210]
or eax, 0x1000000
mov dword [ebp - 0x210], eax
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.101d2900
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x210]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100fc950
mov edx, dword [ebp - 0x218]
or edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f99ca
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10196d15
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x10196d2a
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10196d4c
mov al, 1
jmp 0x10196ddd
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100f9ee8
push esi
mov ebx, eax
push 0
push ebx
call fcn.100142e0
push dword [ebp + 8]
push esi
push ebx
call fcn.101e7ad6
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x10196d8b
cmp eax, 0x2f
jne 0x10196dc7
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10196dc0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10196dce
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x10196dc0
push ebx
mov ecx, eax
call fcn.100b59e0
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x10196d7d
jmp 0x10196dd2
mov byte [ebp - 1], 0
push ebx
call fcn.100f9ef1
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x1019703a
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push 0x684
mov eax, 0x1034f42e
call fcn.100fa762
mov ebx, dword [ebp + 0x38]
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.101d2900
push 0x250
lea eax, [ebp - 0x688]
push 0
push eax
call fcn.101d2900
add esp, 0x18
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.10197716
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10197280
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.10197716
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x688], 0x10
je 0x10197204
mov ecx, 0x103d3978
lea eax, [ebp - 0x65c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10197156
test dx, dx
je 0x10197152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10197156
add eax, 4
add ecx, 4
test dx, dx
jne 0x10197130
xor eax, eax
jmp 0x1019715b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10197263
mov ecx, 0x103e3608
lea eax, [ebp - 0x65c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10197194
test dx, dx
je 0x10197190
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10197194
add eax, 4
add ecx, 4
test dx, dx
jne 0x1019716e
xor eax, eax
jmp 0x10197199
sbb eax, eax
or eax, 1
test eax, eax
je 0x10197263
cmp byte [ebp + 0x3c], 0
je 0x10197263
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10197263
push dword [ebp + 0x3c]
lea eax, [ebp + 0x20]
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x68c], esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.10001f90
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.100026e0
mov byte [ebp - 4], 1
call fcn.1019703a
add esp, 0x38
jmp 0x10197263
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10197263
and dword [ebp - 0x428], 0
lea ecx, [ebp - 0x438]
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x218]
push eax
call fcn.100026b0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.100b88a0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 1
call fcn.100028d0
lea eax, [ebp - 0x688]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101970d1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 8]
call fcn.100028d0
lea ecx, [ebp + 0x20]
call fcn.100028d0
mov al, 1
call fcn.100fa71d
ret
Function at 0x10197300
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.101974f3
and dword [ebp - 0x20], 0
and dword [ebp - 0x24], 0
cmp dword [ebp - 0xc], 0
pop ecx
pop ecx
jbe 0x1019733a
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
jmp 0x1019733c
xor eax, eax
push esi
push edi
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x10197367
mov esi, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x30]
ja 0x10197367
xor edi, edi
add edi, dword [ebp - 0x24]
adc esi, 0
jmp 0x10197375
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
call fcn.100028d0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
mov edx, esi
xor ecx, ebp
pop esi
call fcn.100f99ca
leave
ret
Function at 0x1019738f
Capabilities:
Get disk information

Disassembly:
push 0x54
mov eax, 0x1034f46e
call fcn.100fa762
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
mov word [ebp - 0x58], cx
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
push ebx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x101974db
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100f9ee8
push esi
mov esi, eax
push ebx
push esi
call fcn.100142e0
add esp, 0x10
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x10197415
push esi
call fcn.100f9ef1
pop ecx
jmp 0x101974db
push 7
xor eax, eax
mov dword [ebp - 0x60], esi
pop ecx
mov word [ebp - 0x5a], ax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
movzx edx, word [esi]
mov byte [ebp - 4], 2
cmp ecx, 8
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x28]
mov word [ebp - 0x5c], dx
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x28]
call fcn.10002350
push 0x103651f8
lea ecx, [ebp - 0x28]
call fcn.10002350
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10197499
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x1019748d
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10001bb0
jmp 0x10197499
lea ecx, [ebp - 0x28]
push ecx
push eax
mov ecx, edi
call fcn.10001c40
mov ecx, dword [ebp - 0x60]
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1019749c
movzx eax, word [ecx]
mov dword [ebp - 0x60], ecx
mov edx, eax
test ax, ax
je 0x101974bc
mov ecx, dword [ebp - 0x14]
jmp 0x10197432
push esi
call fcn.100f9ef1
pop ecx
lea ecx, [ebp - 0x28]
call fcn.100028d0
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
setne bl
lea ecx, [ebp - 0x40]
call fcn.100028d0
lea ecx, [ebp - 0x58]
call fcn.100028d0
mov al, bl
call fcn.100fa71d
ret

Function at 0x10197589
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x101975f4
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x10197602
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.100026e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100f99ca
leave
ret
Function at 0x10197612
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x1034f4b5
call fcn.100fa762
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
mov dword [ebp - 0x220], esi
push 0x208
push edi
push eax
mov dword [ebp - 0x21c], edi
call fcn.101d2900
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
add esp, 0xc
mov word [esi], ax
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x21c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10002560
mov eax, esi
call fcn.100fa71d
ret

Function at 0x1019768c
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x1034f4b5
call fcn.100fa762
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
mov dword [ebp - 0x220], esi
push 0x208
push edi
push eax
mov dword [ebp - 0x21c], edi
call fcn.101d2900
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
add esp, 0xc
mov word [esi], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
mov edi, 0x104
mov dword [ebp - 0x21c], 1
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10002560
mov eax, esi
call fcn.100fa71d
ret
Function at 0x101977d3
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x1034f4ed
call fcn.100fa762
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
push 0x44
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.101d2900
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x10197881
push eax
lea ecx, [ebp - 0x40]
call fcn.100026b0
cmp dword [ebp - 0x30], esi
je 0x10197881
push 0x103d26bc
lea ecx, [ebp - 0x28]
call fcn.100026b0
push ebx
lea ecx, [ebp - 0x28]
call fcn.10002350
push 0x10365204
lea ecx, [ebp - 0x28]
call fcn.10002350
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.100022e0
jmp 0x1019788a
push ebx
lea ecx, [ebp - 0x28]
call fcn.100026b0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x101978bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101978e9
cmp byte [ebp + 0x10], 0
je 0x101978d6
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.100028d0
lea ecx, [ebp - 0x28]
call fcn.100028d0
mov eax, esi
call fcn.100fa71d
ret

Function at 0x10197b7e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10197c04
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.101d2900
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10197c04
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10197bf9
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.101d6667
pop ecx
pop ecx
test eax, eax
je 0x10197c14
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10197bd9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100f99ca
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x10197c06
Function at 0x10197f09
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.10197ebe
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x10197f88
cmp dword [ebp - 0x118], ebx
jbe 0x10197fce
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x10197fce
cmp eax, 6
jne 0x10197fb3
cmp byte [ebp - 6], 1
jne 0x10197fae
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x10197faa
sub eax, 1
je 0x10197fa6
push 7
jmp 0x10197fb0
push 5
jmp 0x10197fb0
push 3
jmp 0x10197fb0
push 4
pop ebx
jmp 0x10197fce
push 0xa
pop ecx
cmp eax, ecx
jne 0x10197fcb
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x10197fce
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.100f99ca
leave
ret
Function at 0x10199643
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x1034f913
call fcn.100fa762
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.1019934d
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10199675
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x103653c0
call fcn.10002350
push 0x103653c4
mov ecx, esi
call fcn.10002350
push 0x103d2860
mov ecx, esi
call fcn.10002350
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.100022e0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x101996ca
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10199762
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10199221
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10199721
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.10002350
push 0x103d2860
mov ecx, esi
call fcn.10002350
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.100022e0
cmp dword [esi + 0x14], 8
jb 0x1019976a
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10199782
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x103653c0
call fcn.10002350
push 0x103653c4
mov ecx, esi
call fcn.10002350
push 0x103d2860
mov ecx, esi
call fcn.10002350
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.101993ac
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10003340
lea ecx, [ebp - 0x248]
call fcn.100028d0
lea ecx, [ebp - 0x230]
call fcn.100028d0
call fcn.100fa71d
ret
Function at 0x1019aa02
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x1034fae1
call fcn.100fa762
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x1019aa23
push dword [esi + 0x1c]
call fcn.101ed052
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10199e6f
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.101ec0fb
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x1019aaa7
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10199e6f
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10199e6f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.100028d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.100028d0
sub edi, 1
jns 0x1019aa51
mov ecx, esi
call fcn.1019a72b
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.100028d0
call fcn.100fa71d
ret

Function at 0x1019aac0
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x1034fae1
call fcn.100fa762
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x1019aae1
push dword [esi + 0x1c]
call fcn.101ed052
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10199e6f
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.101ec0fb
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x1019ab65
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10199e6f
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10199e6f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.100028d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.100028d0
sub edi, 1
jns 0x1019ab0f
mov ecx, esi
call fcn.1019a7c2
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.100028d0
call fcn.100fa71d
ret
Function at 0x1019c89c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1034fe94
call fcn.100fa72e
and dword [ebp - 0x20], 0
xor eax, eax
mov ebx, dword [ebp + 8]
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
and dword [ebp - 4], eax
push 0x208
mov dword [ebp - 0x20], 1
call fcn.100f9ee8
mov edx, eax
xor eax, eax
pop ecx
mov ecx, 0x82
mov dword [ebp - 0x14], edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x20019
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1019c9a2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1019c999
cmp dword [ebp - 0x10], 0x104
jbe 0x1019c96a
push dword [ebp - 0x14]
call fcn.100f9ef1
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100f9ee8
mov edi, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], edi
push eax
push esi
push edi
call fcn.100142e0
add esp, 0x14
jmp 0x1019c96d
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov ecx, ebx
mov esi, eax
push edi
call fcn.10002560
push edi
call fcn.100f9ef1
mov edi, dword [ebp - 0x1c]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
cmp esi, eax
jne 0x1019c9c4
cmp dword [ebp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
jne 0x1019c9c4
cmp edi, 0x20019
jne 0x1019c9c4
mov edi, 0x20119
jmp 0x1019c8e9
mov eax, ebx
call fcn.100fa708
ret

Function at 0x1019dc70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
push edi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.100026e0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100f99ca
leave
ret 0x14
Function at 0x1019ddc0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x3c
mov eax, 0x103500a3
call fcn.100fa762
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x1019dde3
xor al, al
jmp 0x1019dea3
lea edi, [ecx + 4]
cmp dword [edi + 0x10], 0
ja 0x1019de06
lea eax, [ebp - 0x40]
push eax
call fcn.1019791f
pop ecx
push eax
mov ecx, edi
call fcn.10002130
lea ecx, [ebp - 0x40]
call fcn.100028d0
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push edi
call fcn.10001f90
xor edi, edi
lea ecx, [ebp - 0x28]
push str.Software_
mov dword [ebp - 4], edi
call fcn.10002350
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.10002350
test ebx, ebx
je 0x1019de4e
push 0x103d2860
lea ecx, [ebp - 0x28]
call fcn.10002350
push ebx
lea ecx, [ebp - 0x28]
call fcn.10002350
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], edi
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1019de99
test esi, esi
je 0x1019de86
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1019de90
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.100028d0
mov al, 1
call fcn.100fa71d
ret 0xc