joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443ef0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47ff58
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x443f29
inc eax
mov dword [esi + 0x10], eax
jmp 0x44403c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x443f3d
mov eax, 0xffffffc7
jmp 0x44403e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x443f4e
cmp dword [esi + 8], eax
jne 0x443f3d
cmp dword [esi + 8], eax
jne 0x443f67
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x443f67
mov eax, 0xffffffc7
jmp 0x44403e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x443f7b
push eax
mov ecx, ebx
call fcn.00443720
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00412ad0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x443fac
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00412af0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00442e90
test eax, eax
mov dword [esp + 0x38], eax
je 0x443fdf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x550eb0
call fcn.00412cd0
mov eax, dword [esp + 0x38]
jmp 0x44403e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00443d50
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x444023
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00443d70
mov esi, eax
test esi, esi
jne 0x444053
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00443d50
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x443ff5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x550eb0
call fcn.00412cd0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x550eb0
call fcn.00412cd0
mov eax, esi
jmp 0x44403e

Function at 0x447180
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4471e0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4471e0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4471e0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4471e0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x447220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x44d370
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004791a8
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044cd10
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004790d6
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00475997
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00475997
push 1
push 0
push 0
mov ecx, esi
call fcn.0047593f
push 1
push 0
push 1
mov ecx, esi
call fcn.0047593f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047921a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44d4f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4805a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004791a8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044cd10
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004790d6
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44d5b4
cmp dword [esp + 0x40], 1
jne 0x44d5b2
cmp ecx, eax
jge 0x44d5b4
mov eax, ecx
cmp eax, 0xc8
jge 0x44d5c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044d370
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047921a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44dd40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480613
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00473db7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00479450
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047a96c
test eax, eax
je 0x44de5c
mov ecx, dword [esp + 0x3c]
call fcn.0047947d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44de20
push edi
mov ecx, esi
call fcn.00476ae3
mov ecx, esi
call fcn.0044dfc0
cmp dword [esp + 0x38], 1
jne 0x44de55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00476c1e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x450890
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4508c3
push esi
call fcn.004539a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4508bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x450949
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x450932
mov eax, dword [esi + 8]
test eax, eax
je 0x4508e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45092e
cmp eax, 2
je 0x450932
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4508da
cmp eax, 3
je 0x45090d
cmp eax, 1
jne 0x4508da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4508da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4508da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00450970
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x450958
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00450970
add esp, 4
pop esi
ret

Function at 0x45c570
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45c613
test eax, eax
jbe 0x45c613
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45c613
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45c5be
xor esi, esi
jmp 0x45c5c4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45c5ef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004134c0
add esi, eax
push esi
mov ebx, esi
call fcn.004134c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45c5d0
pop ebp
test edi, edi
pop edi
jne 0x45c613
test ebx, ebx
je 0x45c613
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00463ac0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45c755
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45c86d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45c86d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00474209
mov esi, eax
test esi, esi
je 0x45c86d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45c86d
mov ecx, esi
call fcn.0045c6c0
cmp edi, eax
jge 0x45c86d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45c7f3
mov dword [esp + 0x34], 1
jmp 0x45c84e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45c86d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045bcc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x45f760
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x56c38c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x45f773
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x45f7b4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x56c434]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x45f7e6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x45f7ea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x45f7db
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x45f808
mov bl, byte [esp + ecx + 0x4c]
jmp 0x45f80c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x45f7fd
xor ecx, ecx
mov eax, 0x56c39c
xor ebx, ebx
mov bl, byte [ecx + 0x56c444]
cmp byte [esp + ebx + 0x14], 0
je 0x45f837
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x56c45c]
cmp byte [esp + ebx + 0x14], 0
je 0x45f84e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x45f81e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x45f7a7
lea edx, [esp + 0x84]
push edx
call fcn.0045f890
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x474bad
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x474be5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00472c64
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00472c3c
jmp 0x474bf1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47629b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4762dd
call fcn.0047bd5c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4762dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4762d4
xor eax, eax
jmp 0x4762e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004762eb
pop edi
pop esi
pop ebx
ret 4

Function at 0x47c28c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47c2ba
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47c2d8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047c1f2
jmp 0x47c2d8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47c2d8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047c1f2
test edi, edi
mov eax, edi
jne 0x47c2c2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001970
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1f05df0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [0x1f07220]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov word [esp + 0x24], si
call ebx
cmp eax, esi
jge 0x100019b5
mov word [esp + 0x1c], 0xa
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x4c], esi
mov word [esp + 0x34], si
call ebx
cmp eax, esi
jge 0x100019d9
mov word [esp + 0x2c], 0xa
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x1c]
mov eax, dword [edi]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x58]
push esi
push esi
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x5c]
push 1
push 0x400
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], esi
mov edx, dword [eax]
push 0x1f07778
push ecx
push eax
mov byte [esp + 0x68], 1
call dword [edx + 0x18]
mov edi, dword [0x1f0721c]
lea edx, [esp + 0x2c]
push edx
mov esi, eax
call edi
lea eax, [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x1001b6c
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100721c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1007034]
mov ecx, dword [ebp + 8]
and dword [ebp - 0x108], 0
push ebx
push esi
push edi
mov esi, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001b95
sub eax, esi
dec ecx
lea edx, [ecx + 1]
mov bl, byte [ecx + 1]
inc ecx
test bl, bl
jne 0x1001ba2
mov edi, ecx
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, eax
push 0x100
and ecx, 3
lea eax, [ebp - 0x104]
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001458
push edi
push 0x100144c
push 0x1001444
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
inc eax
lea esi, [ebp - 0x104]
mov ecx, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
pop ebx
je 0x1001bf7
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x108]
xor ecx, ebp
call fcn.01004c0f
leave
ret 4

Function at 0x1002b36
Capabilities:
Copy file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x100721c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [0x1007114]
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
lea eax, [ebp - 0x20c]
push 0x10014c0
push eax
mov dword [ebp - 0x314], esi
call edi
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002b79
sub eax, ecx
mov ecx, dword [0x1007114]
mov edx, eax
mov eax, ecx
lea esi, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x1002b8f
sub eax, esi
lea eax, [eax + edx + 1]
mov esi, 0x104
cmp eax, esi
jb 0x1002bac
xor eax, eax
jmp 0x1002c39
push ecx
push dword [ebp - 0x314]
lea eax, [ebp - 0x310]
xor ebx, ebx
push 0x10014b8
push eax
mov byte [ebp - 0x108], bl
mov byte [ebp - 0x310], bl
call edi
add esp, 0x10
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1002be7
mov esi, 0x10014a4
lea eax, [ebp - 0x20c]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002bff
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll_strncat]
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004c0f
leave
ret 4
Function at 0x10034c3
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x18
mov eax, 0x100598f
call fcn.01004c56
xor ebx, ebx
cmp dword [0x1007110], ebx
je 0x10035db
mov esi, 0x104
mov dword [ebp - 0x10], esi
mov edi, esi
push ebx
call fcn.0100471a
push edi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x10], edi
call fcn.0100472b
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add edi, esi
cmp eax, 0xea
je 0x10034e7
xor edi, edi
cmp eax, edi
jne 0x10035d4
lea ecx, [ebp - 0x24]
call fcn.01002ead
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x24]
push eax
push ebx
mov dword [ebp - 4], edi
call fcn.01003462
push ebx
call fcn.0100471a
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
cmp esi, eax
pop ecx
mov dword [ebp - 0x14], edi
je 0x1003589
push edi
push dword [0x1007110]
lea ecx, [esi + 8]
call fcn.01002e12
cmp eax, 0xffffffff
je 0x1003582
mov eax, esi
mov esi, dword [esi]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.01003343
jmp 0x1003584
mov esi, dword [esi]
cmp esi, dword [ebp - 0x20]
jne 0x100355b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.01002ecb
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100359e
sub ecx, esi
je 0x10035be
push eax
mov eax, dword [ebp + 0xc]
push ebx
push 7
push edi
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x10035cc
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x24]
call fcn.01003387
push ebx
call fcn.0100471a
pop ecx
call fcn.01004d04
ret 8

Function at 0x10035e8
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x100178c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003640
push 0x1001764
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 4]
push eax
push 0x100173c
call fcn.010034c3
lea eax, [ebp - 4]
push eax
push 0x1001714
call fcn.010034c3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret