joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b32b
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1029044]
push ebx
push esi
mov esi, 0x1029044
cmp eax, esi
push edi
mov edi, ecx
mov ebx, 0x1001bcc
je 0x100b35d
test byte [eax + 0x1c], 4
je 0x100b35d
push ebx
push 0x69
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 4]
call fcn.0100aced
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x1029044]
cmp eax, esi
je 0x100b396
test byte [eax + 0x1c], 4
je 0x100b396
cmp byte [eax + 0x19], 5
jb 0x100b396
push ebx
push 0x6a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x100c69e
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
neg esi
sbb esi, esi
lea eax, [ecx - 0x24]
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x100c6e3
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x100c6d4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x100c6e9
cmp dword [ebp + 0xc], 0
jne 0x100c6e3
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x100c700
mov eax, dword [ebp + 0x10]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0x10]
push eax
lea ecx, [esi + 0x24]
call fcn.0100bce7
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x100d47c
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x1024486
call fcn.0101d5b8
sub esp, 0x1c
mov eax, dword [0x1029044]
push ebx
push esi
mov ebx, 0x1029044
cmp eax, ebx
push edi
mov esi, ecx
je 0x100d4bd
test byte [eax + 0x1c], 4
je 0x100d4bd
cmp byte [eax + 0x19], 5
jb 0x100d4bd
push dword [ebp + 8]
push 0x1001bcc
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov edi, 0x1029278
push edi
lea ecx, [ebp - 0x14]
call fcn.0101e4ea
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x10]
call fcn.0101e4ea
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edi, edi
dec eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
je 0x100d562
dec eax
je 0x100d529
push 5
pop edi
mov dword [esi + 0x1e8], ecx
push 0x2728
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 1
call fcn.0100454f
push 0x2729
lea ecx, [ebp - 0x10]
call fcn.0100454f
push 0x2727
jmp 0x100d594
push 0x272e
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x24], 1
mov dword [esi + 0x1e8], 2
call fcn.0100454f
push 0x272f
lea ecx, [ebp - 0x10]
call fcn.0100454f
push 0x272d
jmp 0x100d594
xor eax, eax
inc eax
push 0x272b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x28], eax
mov dword [esi + 0x1e8], eax
call fcn.0100454f
push 0x272c
lea ecx, [ebp - 0x10]
call fcn.0100454f
push 0x272a
lea ecx, [esi + 0xc8]
call fcn.0100454f
push edi
push dword [esi + 0xd0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push dword [ebp - 0x18]
push dword [esi + 0x18c]
call edi
push dword [ebp - 0x1c]
push dword [esi + 0x134]
call edi
push dword [ebp - 0x20]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi + 0xd0]
call edi
push dword [ebp - 0x24]
push dword [esi + 0x18c]
call edi
push dword [ebp - 0x28]
push dword [esi + 0x134]
call edi
push dword [ebp - 0x14]
lea edi, [esi + 0x6c]
mov ecx, edi
call fcn.0100c828
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0100c88c
push 1
push 0
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 0x1e8]
lea edi, [esi + 0x48]
mov ecx, edi
call fcn.0100ab09
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x1029044]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x100d64b
test byte [eax + 0x1c], 4
je 0x100d64b
push 0x1001bcc
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.01003026
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.01003026
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100e0af
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
push edi
mov byte [ebp - 1], 1
jne 0x100e109
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
add esi, 4
mov eax, dword [esi]
push eax
mov dword [ebp - 0x14], eax
call edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
mov dword [ebp - 0xc], 0xfffffffe
call fcn.0100aced
mov ebx, dword [eax]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call edi
push eax
push 0x4e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x100e168
shr eax, 2
test al, 1
je 0x100e137
add esi, 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0100aced
push dword [esi]
movzx ecx, di
push ecx
push 0x111
push dword [eax]
jmp 0x100e101
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push 0x1001af4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x100e168
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100fde8
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1029044]
cmp eax, 0x1029044
push esi
mov esi, ecx
je 0x100fe20
test byte [eax + 0x1c], 4
je 0x100fe20
cmp byte [eax + 0x19], 5
jb 0x100fe20
push dword [ebp + 8]
push 0x1001d60
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
xor ebx, ebx
inc ebx
push edi
xor edi, edi
mov dword [esi + 0x54], ecx
dec ecx
dec ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], eax
je 0x100fe77
dec ecx
lea ecx, [esi + 0x5c]
je 0x100fe63
push 5
pop edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], eax
push 0x2723
call fcn.0100454f
jmp 0x100fe9d
mov dword [ebp - 0xc], 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
push 0x2725
jmp 0x100fe5c
push 0x2724
lea ecx, [esi + 0x5c]
mov dword [ebp - 8], 5
mov dword [ebp - 0x14], ebx
call fcn.0100454f
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0xc4]
call fcn.010172af
push edi
push dword [esi + 0x64]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push dword [ebp - 8]
push dword [esi + 0xc8]
call edi
push dword [ebp - 0xc]
push dword [esi + 0x128]
call edi
push dword [ebp - 0x10]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi + 0x64]
call edi
push dword [ebp - 0x14]
push dword [esi + 0xc8]
call edi
push dword [ebp - 0x18]
push dword [esi + 0x128]
call edi
push dword [ebp - 0x1c]
push dword [esi + 0x4c]
call edi
push dword [ebp - 4]
mov ecx, esi
call fcn.0100fd31
push ebx
push 0
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 8]
dec eax
dec eax
pop edi
pop ebx
je 0x100ff24
dec eax
je 0x100ff17
lea ecx, [esi + 0x60]
call fcn.010109df
jmp 0x100ff2f
lea ecx, [esi + 0x124]
call fcn.01013c0f
jmp 0x100ff2f
lea ecx, [esi + 0xc4]
call fcn.0101731d
mov eax, dword [0x1029044]
cmp eax, 0x1029044
pop esi
je 0x100ff54
test byte [eax + 0x1c], 4
je 0x100ff54
push 0x1001d60
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
leave
ret 4

Function at 0x101586b
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
neg esi
sbb esi, esi
lea eax, [ecx - 0x24]
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x10158b0
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x10158a1
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x10158b6
cmp dword [ebp + 0xc], 0
jne 0x10158b0
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x10158cd
mov eax, dword [ebp + 0x10]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0x10]
push eax
lea ecx, [esi + 0x24]
call fcn.0101358d
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x1019831
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1012
push dword [esi + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x101988e
cmp dword [ebp - 0xc], 8
jne 0x101988e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x101988e
push dword [ebp - 8]
mov ecx, esi
call fcn.010198a2
mov eax, dword [ebp + 0x14]
and dword [eax], 0
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 0x10
Function at 0x101dc11
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1029294], 0
push esi
jne 0x101db7f
call fcn.0101da76
test eax, eax
je 0x101dbc2
mov eax, dword [0x1029294]
cmp eax, 1
jne 0x101dba0
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x101dbc2
pop esi
ret
push eax
call dword [0x102929c]
test eax, eax
jne 0x101dc0a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x101dbc6
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1029294]
call dword [0x102929c]
mov edi, eax
test edi, edi
je 0x101dbeb
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x101dc07
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1029294]
call dword [0x1029298]
add edi, 0x10
cmp edi, esi
jb 0x101dbf3
mov eax, edi
pop edi
pop esi
ret
jmp 0x101db6c
Function at 0x1020da6
Capabilities:
Get user security identifier

Disassembly:
mov eax, 0x102502b
call fcn.0101d5b8
sub esp, 0xe0
mov eax, dword [0x10290ac]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xe4], eax
jne 0x1020ddf
xor al, al
jmp 0x1020f41
and dword [ebp - 0xd8], 0
push ebx
and dword [ebp - 4], 0
push 0x100
lea ecx, [ebp - 0xd8]
call fcn.0101e9f1
mov eax, dword [ebp - 0xd8]
lea ebx, [esi + 0x4c]
push ebx
lea ecx, [ebp - 0xe0]
push ecx
push eax
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0xe4]
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xe0], 0x80
call edi
test eax, eax
jne 0x1020ebb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1020f1e
cmp dword [ebp - 0xdc], 0x44
jbe 0x1020e67
push 0x80004005
call fcn.01002da0
cmp dword [ebp - 0xe0], 0x80
jbe 0x1020e90
push dword [ebp - 0xe0]
lea ecx, [ebp - 0xd8]
call fcn.0101eb72
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe8], eax
push ebx
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0xe8]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xec]
push dword [ebp - 0xe4]
call edi
test eax, eax
je 0x1020f1e
lea eax, [ebp - 0x54]
push eax
lea eax, [esi + 4]
push eax
push dword [ebp - 0xdc]
mov byte [esi + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1020f1e
push dword [ebp - 0xe8]
lea ecx, [esi + 0x54]
call fcn.01006428
push dword [ebp - 0xec]
lea ecx, [esi + 0x50]
call fcn.01006428
push dword [ebp - 0xe4]
lea ecx, [esi + 0x5c]
call fcn.01006428
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1020f1a
lea ecx, [ebp - 0xd8]
call fcn.0101e569
mov al, 1
jmp 0x1020f40
mov ecx, esi
call fcn.0101e670
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1020f3e
lea ecx, [ebp - 0xd8]
call fcn.0101e569
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.0101d1cf
leave
ret 8
Function at 0x1020ff9
Capabilities:
Get session user name

Disassembly:
mov eax, 0x1025051
call fcn.0101d5b8
sub esp, 0x6c
mov eax, dword [0x10290ac]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x74], eax
mov eax, dword [0x1029044]
mov esi, 0x1029044
cmp eax, esi
push edi
mov edi, dword [ebp + 0xc]
je 0x1021046
test byte [eax + 0x1c], 1
je 0x1021046
cmp byte [eax + 0x19], 5
jb 0x1021046
push 0x1002358
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
lea ecx, [ebp - 0x78]
mov eax, 0x7fff
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x78], eax
call fcn.01003ef0
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
movzx ebx, al
mov eax, dword [0x1029044]
cmp eax, esi
je 0x102108d
test byte [eax + 0x1c], 2
je 0x102108d
cmp byte [eax + 0x19], 4
jb 0x102108d
push ebx
push 0x1002358
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
push 0xffffffffffffffff
mov ecx, edi
call fcn.0101401c
lea ecx, [ebp - 0x70]
call fcn.0101ec10
and dword [ebp - 4], 0
cmp ebx, 1
mov eax, dword [0x1029044]
jne 0x1021157
cmp eax, esi
je 0x10210d4
test byte [eax + 0x1c], 2
je 0x10210d4
cmp byte [eax + 0x19], 4
jb 0x10210d4
push dword [edi]
push 0x1002358
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a8ea
mov edi, dword [edi]
push 0
push edi
lea ecx, [ebp - 0x70]
call fcn.01020da6
movzx ebx, al
mov eax, dword [0x1029044]
cmp eax, esi
je 0x1021111
test byte [eax + 0x1c], 2
je 0x1021111
cmp byte [eax + 0x19], 4
jb 0x1021111
push ebx
push 0x1002358
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov eax, dword [0x1029044]
cmp ebx, 1
jne 0x1021157
lea ecx, [ebp - 0x70]
call fcn.01020f5e
mov edi, dword [ebp - 0x74]
push eax
mov ecx, edi
call fcn.01006428
mov eax, dword [0x1029044]
cmp eax, esi
je 0x102117a
test byte [eax + 0x1c], 2
je 0x1021157
cmp byte [eax + 0x19], 4
jb 0x1021157
push dword [edi]
push 0x1002358
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a8ea
mov eax, dword [0x1029044]
cmp eax, esi
je 0x102117a
test byte [eax + 0x1c], 1
je 0x102117a
cmp byte [eax + 0x19], 5
jb 0x102117a
push ebx
push 0x1002358
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
lea ecx, [ebp - 0x70]
call fcn.0101ec4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
call fcn.0101d1cf
leave
ret 8
Function at 0x1021a5d
Capabilities:
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1029044]
push ebx
push esi
mov esi, 0x1029044
cmp eax, esi
push edi
mov dword [ebp - 4], ecx
mov edi, 0x10025c0
je 0x1021a92
test byte [eax + 0x1c], 1
je 0x1021a92
push edi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
cmp dword [ebp + 8], 0x80
mov ecx, dword [ebp - 4]
sbb eax, eax
neg eax
push eax
call fcn.0102194d
mov ebx, eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x1021acc
test byte [eax + 0x1c], 2
je 0x1021acc
cmp byte [eax + 0x19], 4
jb 0x1021acc
push ebx
push edi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
cmp ebx, 1
jne 0x1021b16
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
cmp ebx, 1
je 0x1021b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1029044]
cmp ecx, esi
je 0x1021b16
test byte [ecx + 0x1c], 2
je 0x1021b16
cmp byte [ecx + 0x19], 4
jb 0x1021b16
push eax
push edi
push 0x2b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002b7b
mov ecx, dword [ebp - 4]
call fcn.010218bf
mov eax, dword [0x1029044]
cmp eax, esi
je 0x1021b42
test byte [eax + 0x1c], 1
je 0x1021b42
cmp byte [eax + 0x19], 5
jb 0x1021b42
push ebx
push edi
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1023524
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x1025107
call fcn.0101d5b8
push ecx
push ecx
mov eax, dword [0x1029044]
push ebx
push esi
mov esi, 0x1029044
cmp eax, esi
push edi
mov edi, 0x100260c
je 0x1023560
test byte [eax + 0x1c], 1
je 0x1023560
cmp byte [eax + 0x19], 5
jb 0x1023560
push edi
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
push 0x100261c
push 0x17
push eax
push 0x100263c
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x10235aa
test byte [eax + 0x1c], 2
je 0x10235aa
cmp byte [eax + 0x19], 4
jb 0x10235aa
push ebx
push edi
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov eax, dword [0x1029044]
and dword [ebp - 0x10], 0
test ebx, ebx
mov byte [ebp - 4], 1
jl 0x102362c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x1c]
mov ebx, eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x10235ee
test byte [eax + 0x1c], 2
je 0x10235ee
cmp byte [eax + 0x19], 4
jb 0x10235ee
push ebx
push edi
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov eax, dword [0x1029044]
test ebx, ebx
jl 0x102362c
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov ebx, eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x102365a
test byte [eax + 0x1c], 2
je 0x102362c
cmp byte [eax + 0x19], 4
jb 0x102362c
push ebx
push edi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov eax, dword [0x1029044]
cmp eax, esi
je 0x102365a
test byte [eax + 0x1c], 1
je 0x102365a
movzx ecx, byte [eax + 0x19]
xor edx, edx
test ebx, ebx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x102365a
push ebx
push edi
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov eax, dword [ebp - 0x10]
test eax, eax
mov byte [ebp - 4], 0
je 0x102366b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x102367c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1024083
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002698
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10240db
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10026d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10240ce
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10240dd
xor eax, eax
pop esi
leave
ret 4
Function at 0x10001048
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov dword [ebp - 0x248], ecx
call fcn.100051f7
mov edi, eax
pop ecx
test edi, edi
jne 0x1000107f
mov dword [0x1004d92c], 0x10000
jmp 0x1000109e
cmp dword [edi], 1
je 0x10001090
mov dword [0x1004d92c], 0x80000
jmp 0x1000109e
mov esi, dword [edi + 4]
push ebx
call fcn.1000492e
mov dword [0x1004d92c], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x240]
mov eax, edi
call fcn.100052a6
mov eax, dword [ebp - 0x240]
and dword [ebp - 0x244], 0
pop ecx
mov dword [ebp - 0x24c], eax
test eax, eax
jle 0x10001190
push dword [0x1004d930]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100011cb
push dword [0x1004d930]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100011cb
fild dword [ebp - 0x244]
fidiv dword [ebp - 0x24c]
fmul qword [0x10032c18]
call fcn.100288b0
mov esi, dword [ebp - 0x248]
push eax
call fcn.100017ff
mov esi, dword [ebp - 0x244]
pop ecx
push esi
lea ecx, [ebp - 0x240]
mov eax, edi
call fcn.100052a6
pop ecx
lea eax, [ebp - 0x23c]
push eax
push ebx
lea eax, [ebp - 0x110]
push 0x1002efc4
push eax
call fcn.10016a05
add esp, 0x10
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x23c]
push eax
push esi
mov eax, edi
call fcn.100052e4
pop ecx
pop ecx
cmp eax, 0x5000000
je 0x100011b5
inc esi
cmp esi, dword [ebp - 0x24c]
mov dword [ebp - 0x244], esi
jl 0x100010c9
mov esi, dword [ebp - 0x248]
push 0x64
call fcn.100017ff
pop ecx
mov esi, edi
call fcn.10005315
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10016165
leave
ret
push 0x30
push 0x1002efcc
push 0x1002efd4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x100011d2
mov esi, edi
call fcn.10005315
xor al, al
jmp 0x100011a7

Function at 0x100012b4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
call fcn.10001247
lea eax, [ebp - 0x108]
call fcn.10001247
lea eax, [ebp - 0x20c]
push str.local.inf
push eax
call fcn.10016ab0
lea eax, [ebp - 0x108]
push str.version.inf
push eax
call fcn.10016ab0
push 0xa
lea eax, [ebp - 0x310]
push eax
push dword [ebp + 8]
call fcn.10016bdc
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
push 0
mov edi, 0x1002f030
push edi
lea eax, [ebp - 0x310]
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
push 0
push edi
lea eax, [ebp - 0x310]
push eax
call esi
mov ecx, dword [ebp - 4]
cmp eax, ebx
pop edi
setg al
pop esi
xor ecx, ebp
pop ebx
call fcn.10016165
leave
ret
Function at 0x1000135d
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp + 0x294], eax
mov eax, dword [ebp + 0x2a4]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov esi, ecx
push edi
lea eax, [ebp + 0x190]
mov dword [ebp - 0x7c], esi
call fcn.10001247
lea eax, [ebp + 0x190]
push str.version.inf
push eax
call fcn.10016ab0
push 0xa
lea eax, [ebp + 0x8c]
push eax
push dword [ebp + 0x2a0]
call fcn.10016bdc
add esp, 0x14
lea eax, [ebp + 0x190]
push eax
mov ebx, 0x1000
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x1002f100
push edi
push str.BaseUrl
push str.Global
call esi
lea eax, [ebp + 0x190]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push edi
push 0x1002f03c
lea eax, [ebp + 0x8c]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call fcn.10016ab0
pop ecx
pop ecx
lea eax, [ebp + 0x190]
push eax
push 0x104
push dword [ebp - 0x80]
lea eax, [ebp + 0x8c]
push edi
push 0x1002f040
push eax
call esi
mov ecx, dword [ebp + 0x294]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016165
add ebp, 0x298
leave
ret

Function at 0x10001441
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edi
push esi
sub eax, edi
push 0x105
mov esi, eax
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.10016180
push esi
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.10016d70
add esp, 0x18
cmp esi, 2
jle 0x10001493
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [edi + esi + 1]
push 0x1002efec
push eax
call fcn.10016ecb
pop ecx
pop ecx
test eax, eax
jne 0x10001457
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10016165
leave
ret