joyce8/EMBER2024-capa huggingface dataset:
Function at 0x525200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x525253
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x52523a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52bc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55cbfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0052c530
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6af0ec
call fcn.0054bc99
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x52bca3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0054bc99
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x52bc9c
push 0
mov ecx, eax
call fcn.00522d10
mov dword [esi + 0xc], eax
jmp 0x52bca5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x52bca5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x10001ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc58
mov eax, dword [0x100190cc]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.100026e0
mov dword [ebp - 0xc50], eax
cmp dword [ebp + 8], 0
je 0x10001f0a
cmp dword [ebp + 0xc], 0
jne 0x10001f11
xor eax, eax
jmp 0x10002057
mov dword [ebp - 0xc58], 0x208
mov word [ebp - 0xc48], 0
push 0x81e
push 0
lea eax, [ebp - 0xc46]
push eax
call fcn.1000a200
add esp, 0xc
push 0x10013c7c
push 0x10013c80
lea ecx, [ebp - 0xc48]
push ecx
call fcn.100038f0
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0xc48]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0xc4c], eax
cmp dword [ebp - 0xc4c], 0
je 0x10001f82
xor eax, eax
jmp 0x10002057
lea ecx, [ebp - 0xc58]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push 0x10013cdc
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc4c], eax
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc4c], 0
je 0x10001fce
xor eax, eax
jmp 0x10002057
mov word [ebp - 0x420], 0
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.1000a200
add esp, 0xc
push 0x10013cec
push 0x10013cf0
lea ecx, [ebp - 0x420]
push ecx
call fcn.100038f0
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x10002022
xor eax, eax
jmp 0x10002057
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.1000a383
add esp, 8
test eax, eax
je 0x1000203b
xor eax, eax
jmp 0x10002057
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1000a290
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a1e2
mov esp, ebp
pop ebp
ret

Function at 0x10002070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x100190cc]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x424], 0
mov word [ebp - 0x420], 0
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.1000a200
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.1000a200
add esp, 0xc
push 0x10013d1c
push 0x10013d20
lea edx, [ebp - 0x420]
push edx
call fcn.100037c0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x428]
push edx
push str.Start
lea eax, [ebp - 0x420]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x10002123
mov eax, 1
jmp 0x10002132
cmp dword [ebp - 4], 2
je 0x10002130
mov eax, 1
jmp 0x10002132
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000a1e2
mov esp, ebp
pop ebp
ret
Function at 0x10002330
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x100190cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x430], 0
push 0x424
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.1000a200
add esp, 0xc
mov dword [ebp - 0x438], 0
mov ecx, dword [ebp + 8]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0xffffffff
je 0x10002401
mov dword [ebp - 0x430], 0x428
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x434]
push eax
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x100023f4
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x410]
push edx
call fcn.1000a528
add esp, 8
test eax, eax
jne 0x100023dd
mov ecx, 0x10a
lea esi, [ebp - 0x430]
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x438], 1
jmp 0x100023f4
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x100023aa
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x438]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a1e2
mov esp, ebp
pop ebp
ret

Function at 0x100043f0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x10004408
xor eax, eax
jmp 0x100044e6
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000443b
xor eax, eax
jmp 0x100044e6
lea ecx, [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10004476
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x426
jne 0x10004468
mov eax, 1
jmp 0x100044e6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x100044e6
cmp dword [ebp - 0x20], 1
jne 0x1000448d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x100044e6
mov dword [ebp - 0x2c], 0
jmp 0x1000449f
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0x32
jge 0x100044da
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x100044b9
jmp 0x100044da
cmp dword [ebp - 0x20], 1
jne 0x100044d0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x100044e6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10004496
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100044f0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x10004508
xor eax, eax
jmp 0x100045a0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000453f
xor eax, eax
jmp 0x100045a0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
cmp dword [ebp - 8], 0
jne 0x10004591
cmp dword [ebp - 0xc], 0x420
jne 0x10004583
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x100045a0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x100045a0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x100045b0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x100045c5
xor eax, eax
jmp 0x10004614
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.100043f0
push 0xf01ff
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100045fa
xor eax, eax
jmp 0x10004614
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x100046a0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x100046ca
xor eax, eax
jmp 0x10004744
mov ecx, dword [ebp + 0x34]
push ecx
mov edx, dword [ebp + 0x30]
push edx
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000472a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x431
jne 0x10004728
mov dword [ebp - 8], 1
jmp 0x10004731
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
je 0x10004741
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x30

Function at 0x10004750
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10004790
xor eax, eax
jmp 0x100047ef
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
push eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100047e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x10004a60
Capabilities:
Delete file
Delete registry key
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012440
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100190cc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10005db0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10004ab7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005d90
jmp 0x10004b64
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x14], eax
jmp 0x10004acb
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jl 0x10004b3d
lea ecx, [ebp - 0x34]
call fcn.10002770
mov byte [ebp - 4], 1
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp - 0x34]
call fcn.100027c0
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp + 8]
call fcn.10005e10
push eax
lea ecx, [ebp - 0x34]
call fcn.10005ed0
lea ecx, [ebp - 0x34]
call fcn.100027e0
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.10005e10
mov ecx, eax
call fcn.100027e0
push eax
mov ecx, dword [ebp - 0x38]
call fcn.10005620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.100027a0
jmp 0x10004ac2
push 4
push 0
push str.awdizz
mov ecx, dword [ebp - 0x38]
call fcn.10005250
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005d90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1000a1e2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10004b80
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012478
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x100190cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x848], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x814], 0
push 0x7ff
push 0
lea eax, [ebp - 0x813]
push eax
call fcn.1000a200
add esp, 0xc
mov dword [ebp - 0x81c], 0x800
mov dword [ebp - 0x820], 0
lea ecx, [ebp + 8]
call fcn.10005df0
movzx ecx, al
test ecx, ecx
je 0x10004c18
jmp 0x10004d8b
mov dword [ebp - 0x840], 0x100141a8
lea edx, [ebp - 0x10]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0x840]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
je 0x10004c53
jmp 0x10004d8b
lea ecx, [ebp - 0x81c]
push ecx
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x818]
push eax
push 0
push 0x10014214
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
je 0x10004c8d
jmp 0x10004d8b
lea ecx, [ebp - 0x83c]
call fcn.100070e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x81c]
push edx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x83c]
call fcn.10007200
movzx ecx, al
test ecx, ecx
jne 0x10004cd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x83c]
call fcn.10007180
jmp 0x10004d8b
mov dword [ebp - 0x844], 0
jmp 0x10004ceb
mov edx, dword [ebp - 0x844]
add edx, 1
mov dword [ebp - 0x844], edx
lea ecx, [ebp + 8]
call fcn.10005db0
cmp dword [ebp - 0x844], eax
jae 0x10004d1f
mov eax, dword [ebp - 0x844]
push eax
lea ecx, [ebp + 8]
call fcn.10005e10
mov ecx, eax
call fcn.100027e0
push eax
lea ecx, [ebp - 0x83c]
call fcn.10007480
jmp 0x10004cdc
lea ecx, [ebp - 0x83c]
call fcn.10007410
push eax
lea ecx, [ebp - 0x83c]
call fcn.100072e0
push eax
push 7
push 0
push 0x10014224
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
je 0x10004d6a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x83c]
call fcn.10007180
jmp 0x10004d8b
mov dword [ebp - 0x820], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x83c]
call fcn.10007180
xor edx, edx
jne 0x10004c04
cmp dword [ebp - 0x10], 0
je 0x10004d9b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005d90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000a1e2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10004e90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100124cc
mov eax, dword fs:[0]
push eax
mov eax, 0x2090
call fcn.1000af90
mov eax, dword [0x100190cc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2094], ecx
mov byte [ebp - 0xd], 0
mov word [ebp - 0x201c], 0
push 0x1ffe
push 0
lea eax, [ebp - 0x201a]
push eax
call fcn.1000a200
add esp, 0xc
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x10004efa
jmp 0x10005093
cmp dword [ebp + 0xc], 0
jne 0x10004f05
jmp 0x10005093
cmp dword [ebp + 0x10], 0
jne 0x10004f10
jmp 0x10005093
mov ecx, dword [ebp + 0x10]
push ecx
push 0x1000
lea edx, [ebp - 0x201c]
push edx
push 0x10014270
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x14], eax
movzx edx, word [ebp - 0x201c]
test edx, edx
jne 0x10004f46
jmp 0x10005093
lea eax, [ebp - 0x201c]
push eax
lea ecx, [ebp - 0x2054]
call fcn.10003d90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2070]
call fcn.10002770
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2038]
call fcn.10005c70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2054]
call fcn.10005f30
movzx ecx, al
test ecx, ecx
jne 0x10005057
push 0
push 0x5c
lea ecx, [ebp - 0x2054]
call fcn.10005f50
mov dword [ebp - 0x2074], eax
mov edx, dword [ebp - 0x2074]
cmp edx, dword [0x10013e8c]
je 0x10005021
mov eax, dword [ebp - 0x2074]
push eax
push 0
lea ecx, [ebp - 0x2090]
push ecx
lea ecx, [ebp - 0x2054]
call fcn.10005f70
mov dword [ebp - 0x2098], eax
mov edx, dword [ebp - 0x2098]
mov dword [ebp - 0x209c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x209c]
push eax
lea ecx, [ebp - 0x2070]
call fcn.10005eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2090]
call fcn.100027a0
mov ecx, dword [ebp - 0x2074]
add ecx, 1
push ecx
push 0
lea ecx, [ebp - 0x2054]
call fcn.10003470
jmp 0x10005033
lea edx, [ebp - 0x2054]
push edx
lea ecx, [ebp - 0x2070]
call fcn.10005eb0
lea eax, [ebp - 0x2070]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.10005e40
mov ecx, dword [ebp - 0x2074]
cmp ecx, dword [0x10013e8c]
jne 0x10005052
jmp 0x10005057
jmp 0x10004f7d
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2038]
call fcn.10002730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2070]
call fcn.100027a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2054]
call fcn.100027a0
xor edx, edx
jne 0x10004eef
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1000a1e2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100050c0
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001250a
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100190cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x254]
call fcn.10002770
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.10002770
mov byte [ebp - 4], 1
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.1000a200
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x10005144
cmp dword [ebp + 0xc], 0
jne 0x10005149
jmp 0x100051ff
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x25c]
call fcn.10005250
push eax
lea ecx, [ebp - 0x254]
call fcn.100027c0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x25c]
call fcn.10005330
push eax
lea ecx, [ebp - 0x238]
call fcn.100027c0
push 0x104
lea ecx, [ebp - 0x238]
call fcn.100027e0
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10003fa0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x100051b2
jmp 0x100051ff
push 0
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100051d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100051d4
jmp 0x100051ff
push 0
lea ecx, [ebp - 0x238]
call fcn.100027e0
push eax
lea ecx, [ebp - 0x254]
call fcn.100027e0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x10], eax
xor eax, eax
jne 0x10005138
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x258], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.100027a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.100027a0
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000a1e2
mov esp, ebp
pop ebp
ret 8
Function at 0x10005330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100190cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.1000a200
add esp, 0xc
mov ecx, dword [ebp - 0x214]
add ecx, 0x3c
call fcn.10005ef0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1000538e
jmp 0x100053f1
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x100053a5
jmp 0x100053f1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x100053bc
jmp 0x100053f1
push str..dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
jne 0x100053d4
jmp 0x100053f1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x3c
call fcn.100027c0
xor edx, edx
jne 0x10005368
mov ecx, dword [ebp - 0x214]
add ecx, 0x3c
call fcn.100027e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a1e2
mov esp, ebp
pop ebp
ret 4

Function at 0x10005410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100190cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.1000a200
add esp, 0xc
mov ecx, dword [ebp - 0x214]
add ecx, 0x58
call fcn.10005ef0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1000546e
jmp 0x100054d1
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x10005485
jmp 0x100054d1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x1000549c
jmp 0x100054d1
push str..ext
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
jne 0x100054b4
jmp 0x100054d1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x58
call fcn.100027c0
xor edx, edx
jne 0x10005448
mov ecx, dword [ebp - 0x214]
add ecx, 0x58
call fcn.100027e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a1e2
mov esp, ebp
pop ebp
ret 4