joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428a20
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x11c
lea eax, [ebp - 0x330]
push 0
push eax
call fcn.004440d0
add esp, 0xc
lea ecx, [ebp - 0x330]
push ecx
mov dword [ebp - 0x330], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, byte [ebp - 0x32c]
movzx edx, byte [ebp - 0x328]
movzx ecx, byte [ebp - 0x216]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 0x21c]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
cmp eax, 0x6000100
jb 0x428aa0
mov byte [ebp - 0x331], 1
cmp eax, 0xffffffff
jbe 0x428aa7
mov byte [ebp - 0x331], 0
push 0x104
push 0x46c5b8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x46c5b8
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x46c5b8
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0043a043
add esp, 0xc
push str.ICCSetupICC.exe
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push str.noinstall
setg byte [ebp - 0x333]
call fcn.00402130
test eax, eax
push 0x9cf
setg bl
push esi
mov ecx, 0x458
mov byte [ebp - 0x332], bl
call fcn.00434270
push 0x9d0
push esi
mov ecx, 0x456
call fcn.00434270
cmp byte [0x46bd92], 0
je 0x428b4c
cmp byte [ebp - 0x331], 0
jne 0x428b54
test bl, bl
je 0x428c05
push 0x9f5
push esi
mov ecx, 0x3ed
call fcn.00434270
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ed
push esi
call ebx
mov edi, eax
xor eax, eax
cmp byte [0x46bd91], al
push 0
setne al
push eax
push 0xf1
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp - 0x333], 0
jne 0x428ba9
cmp byte [ebp - 0x332], 0
je 0x428c05
push 0x9f7
push esi
mov ecx, 0x48c
call fcn.00434270
push 0x48c
push esi
call ebx
xor ecx, ecx
cmp byte [0x46bd90], cl
push 0
setne cl
mov edi, eax
push ecx
push 0xf1
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 0x9f8
push esi
mov ecx, 0x48d
call fcn.00434270
push 0x48d
push esi
call ebx
push 5
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00438351
mov esp, ebp
pop ebp
ret
Function at 0x429310
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
push str..idx
push esi
call fcn.00439f05
add esp, 8
test eax, eax
je 0x429348
push str..sch
push esi
call fcn.00439f05
add esp, 8
test eax, eax
jne 0x429352
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [edi + 4]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8

Function at 0x42a0f0
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push edi
push esi
push 0x42a120
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x42a111
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
ret
Function at 0x42b3c0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x436b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x46bec0]
push 0
push 0x436a90
push 0
push 0x9b
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
jmp eax

Function at 0x42b9f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452d48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x469738]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
push str.COINSTALL
push str.Reading_action_list_from_resource:__s
push 0x46a9d4
xor eax, eax
mov dword [esp + 0x44], edi
call fcn.0042d150
add esp, 0xc
push 0x45f0dc
push str.COINSTALL
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42bafe
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ebx, [edi + 2]
push ebx
mov dword [esp + 0x1c], eax
call fcn.004381d7
add esp, 4
push ebx
mov esi, eax
push 0
push esi
call fcn.004440d0
mov eax, dword [esp + 0x24]
add esp, 0xc
push edi
push eax
push esi
call fcn.0043e000
add esp, 0xc
push 0xa
lea ecx, [esi + 2]
lea ebx, [esp + 0x20]
call fcn.00437460
add esp, 4
push esi
call fcn.0043a831
mov ecx, dword [ebp + 8]
add ecx, 0xc7c
add esp, 4
push ecx
mov ecx, ebx
call fcn.00411aa0
mov edi, eax
test edi, edi
jne 0x42bafa
push str.Error_loading_resource_action_file
push 0x46a9d4
lea eax, [edi + 2]
call fcn.0042d150
add esp, 8
mov dword [0x46a9f8], 0xa006
mov ebx, dword [esp + 0x1c]
test edi, edi
setne al
mov byte [esp + 0x17], al
test ebx, ebx
je 0x42bb23
mov edi, dword [esp + 0x20]
mov eax, ebx
call fcn.0040d7d0
push ebx
call fcn.004396db
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42c470
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Cleanup
push str.__s_
push 0x46a9d4
xor eax, eax
mov esi, ecx
call fcn.0042d150
mov edi, 1
add dword [0x46a9f4], edi
add esp, 0xc
cmp byte [esi + 0xcec], 0
je 0x42c625
cmp dword [esi + 0xa30], 8
lea eax, [esi + 0xa1c]
jb 0x42c4c9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0043a043
add esp, 0xc
push str.UninstallSetup.exe
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x80
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
push str.Deleting__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
lea esi, [ebp - 0x20c]
call fcn.00424eb0
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x42c639
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x42c550
lea edi, [ebp - 0x20c]
call fcn.004314d0
test al, al
jne 0x42c60e
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x42c60e
mov eax, edi
push eax
push str.Deleting__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
lea ecx, [ebp - 0x61c]
push ecx
push 0x104
call esi
lea edx, [ebp - 0x414]
push edx
push 0
push 0x45b440
lea eax, [ebp - 0x61c]
push eax
call ebx
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x414]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x42c5e6
push 4
push 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x42c5ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x42c550
dec dword [0x46a9f4]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret
push str.Cleanup_is_being_skipped
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 8
sub dword [0x46a9f4], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00438351
mov esp, ebp
pop ebp
ret
Function at 0x42ca40
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x46bd98]
add eax, 0xcd0
cmp dword [eax + 0x14], 8
push esi
mov esi, ecx
jb 0x42ca68
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x39c]
push 0x104
push eax
call fcn.0043a043
add esp, 0xc
push str._version.ini
lea ecx, [ebp - 0x39c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x39c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42cafc
lea eax, [ebp - 0x39c]
push eax
push 0xc8
lea ecx, [ebp - 0x194]
push ecx
push 0
push str.PackVer
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x194]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cad0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x194]
call fcn.004065b0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00438351
mov esp, ebp
pop ebp
ret
Function at 0x42d150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
mov esi, eax
lea eax, [edi + 4]
jb 0x42d169
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42d2d0
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 1
jne 0x42d1a6
mov esi, 0x45fb4c
jmp 0x42d1b5
cmp esi, 2
mov esi, 0x45fb54
je 0x42d1b5
mov esi, 0x4574a4
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d1c0
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 4]
push ecx
lea edx, [eax + eax]
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d1e6
sub eax, edx
mov edx, dword [edi + 0x20]
sar eax, 1
add edx, edx
mov dword [ebp - 8], eax
mov eax, 0x46c7c0
test edx, edx
jle 0x42d22f
mov eax, 0x20
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
mov edi, 0x46c7c0
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp + 8]
lea eax, [edx*2 + 0x46c7c0]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [edi + 0x20]
add eax, eax
sub eax, dword [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
add eax, eax
push eax
push 0x46c7c0
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
call fcn.0043c957
lea esi, [eax + 3]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004381d7
mov ecx, dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp + 0x10]
push eax
push ecx
push esi
push edi
call fcn.0043cae2
push 0x45fb60
push esi
push edi
call fcn.0043a0a6
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d2a0
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 4]
push edx
add eax, eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0043a831
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, edx
push esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d410
mov ecx, dword [ebp + 0xc]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x42d450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, edx
push esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d460
mov ecx, dword [ebp + 0xc]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push 2
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop esi
pop ebp
ret 8

Function at 0x42d4a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
push ebx
xor eax, eax
push esi
cmp ecx, edx
je 0x42d4bf
mov esi, dword [ecx + 0x10]
add ecx, 0x1c
lea eax, [eax + esi + 1]
cmp ecx, edx
jne 0x42d4b1
inc eax
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004381d7
mov esi, eax
push esi
lea eax, [ebp - 4]
mov ebx, edi
call fcn.004370c0
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add esp, 8
lea ecx, [eax + eax]
mov eax, dword [edx]
push ecx
push esi
push 7
push 0
push str.DPPE
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42d520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d530
sub eax, edx
sar eax, 1
inc eax
push eax
call fcn.004381d7
mov ebx, eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x42d5bf
cmp ax, 0x61
jb 0x42d565
cmp ax, 0x66
ja 0x42d565
mov al, byte [esi]
sub al, 0x57
jmp 0x42d57b
cmp ax, 0x41
jb 0x42d577
cmp ax, 0x46
ja 0x42d577
mov al, byte [esi]
sub al, 0x37
jmp 0x42d57b
mov al, byte [esi]
sub al, 0x30
movzx ecx, word [esi + 2]
shl al, 4
cmp ecx, 0x61
jb 0x42d594
cmp ecx, 0x66
ja 0x42d594
mov cl, byte [esi + 2]
sub cl, 0x57
jmp 0x42d5ae
cmp ecx, 0x41
jb 0x42d5a8
cmp ecx, 0x46
ja 0x42d5a8
mov dl, byte [esi + 2]
sub dl, 0x37
or al, dl
jmp 0x42d5b0
mov cl, byte [esi + 2]
sub cl, 0x30
or al, cl
add esi, 4
mov byte [ebx + edi], al
movzx eax, word [esi]
inc edi
test ax, ax
jne 0x42d553
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push ebx
push 3
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.0043a831
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
pop ebp
ret 8
Function at 0x42d620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ebx, ecx
mov ecx, dword [ebx]
push esi
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42d653
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.004381d7
mov ecx, dword [ebx]
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d690
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004065b0
push edi
call fcn.0043a831
add esp, 4
pop edi
xor eax, eax
test ebx, ebx
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42d6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebx]
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push edi
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42d6ff
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.004381d7
mov ecx, dword [ebx]
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp + 8]
push edx
mov ecx, esi
mov edi, eax
call fcn.00436fe0
push esi
call fcn.0043a831
add esp, 8
xor eax, eax
test edi, edi
pop esi
sete al
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x42d810
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push esi
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42d90b
lea edx, [ebp - 0x210]
push edx
mov eax, edi
or eax, 0xf003f
push eax
push 0
lea ecx, [ebp - 0x20c]
push ecx
push esi
call ebx
test eax, eax
jne 0x42d90b
mov eax, dword [ebp - 0x210]
push edi
lea edx, [ebp - 0x20c]
push edx
push eax
call fcn.0042d810
mov ecx, dword [ebp - 0x210]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x100
jne 0x42d8f5
mov eax, dword [0x46bf68]
test eax, eax
jne 0x42d8db
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46bf68], eax
test eax, eax
je 0x42d8ee
push 0
push pe_nt_image_headers32
lea edx, [ebp - 0x20c]
push edx
push esi
call eax
jmp 0x42d903
mov eax, 0x32
jmp 0x42d903
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x42d832
pop edi
pop esi
pop ebx
cmp eax, 0x103
jne 0x42d917
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret

Function at 0x42df90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x46bec0]
push edi
push str.LRCDATA
push str.LICENSE
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42dfba
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x46bec0]
push ebx
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x46bec0]
push edi
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ebx, [esi + 2]
push ebx
mov dword [ebp - 4], eax
call fcn.004381d7
push ebx
mov edi, eax
push 0
push edi
call fcn.004440d0
mov eax, dword [ebp - 4]
push esi
push eax
push edi
call fcn.0043e000
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x42e010
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e010
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004065b0
push edi
call fcn.0043a831
add esp, 4
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x430550
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 0x10]
push ecx
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x124], edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x124]
push ecx
push ebx
mov dword [ebp - 0x130], edi
mov edi, eax
push ebx
and edi, 0x10000000
push edx
mov edx, dword [ebp + 8]
cmp ebx, edi
sbb edi, edi
push 0xffffffffffffffff
and eax, 0xefffffff
push eax
mov eax, dword [esi + 4]
push edx
neg edi
push eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x12c], edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x430673
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x130]
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea edx, [ebp - 0x124]
push edx
push 1
push eax
mov dword [ebp - 0x124], ecx
call ebx
test eax, eax
jne 0x4305fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x43068d
jmp 0x430602
mov edi, dword [ebp - 0x128]
push 0x11c
lea ecx, [ebp - 0x120]
push 0
push ecx
call fcn.004440d0
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, byte [ebp - 0x11c]
movzx ecx, byte [ebp - 0x118]
movzx edx, byte [ebp - 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xc]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
cmp eax, 0x6000100
jb 0x43068b
cmp eax, 0xffffffff
ja 0x43068b
mov eax, dword [esi + 4]
lea edx, [ebp - 0x12c]
push edx
push 3
push eax
call ebx
test eax, eax
jne 0x43068b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00438351
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4306c0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4307bf
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebx
cmp dword [ebp - 0x1c], 4
mov edi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
je 0x43078b
mov eax, 0xcccccccd
mul dword [ebp - 8]
shr edx, 3
cmp edx, 0x3e8
jae 0x43072a
mov edx, 0x3e8
jmp 0x430737
cmp edx, 0x2710
jbe 0x430737
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x430785
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xc], eax
jbe 0x430764
call ebx
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0x24], ecx
jmp 0x43076d
call ebx
sub eax, edi
cmp eax, dword [ebp - 8]
ja 0x430785
cmp dword [ebp - 0x1c], 4
jne 0x430710
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 4
jne 0x43079d
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
pop edi
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret