joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429310
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x410
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x408], eax
cmp dword [edi + 0xce0], 8
push ebx
push ebp
push esi
lea ebp, [edi + 0xc7c]
jb 0x42933e
mov eax, dword [edi + 0xccc]
jmp 0x429344
lea eax, [edi + 0xccc]
push eax
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.0043f42c
add esp, 0xc
mov edx, str.coin
call fcn.00401ee0
test eax, eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x429383
push str.MediaSDK
lea ecx, [esp + 0x14]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
push str.Co_Install_Config_path___s
jmp 0x429399
push str.GraphicsMediaSDK
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
push str.Install_Config_path___s
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
push str.config.ini
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x10]
push eax
push str.Looking_for_MediaSDK_configuration__s
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4294fb
push str.Reading_config.ini
push 0x46fa40
xor eax, eax
call fcn.00431730
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0xfa
lea eax, [esp + 0x220]
push eax
push 0x45c9e8
push str.version
push str.Setup
call esi
lea ecx, [esp + 0x218]
push ecx
push str.__SDK_version___s
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0xfa
lea eax, [esp + 0x220]
push eax
push 0x45c9e8
push str.merit
push str.Setup
call esi
push ebp
lea ebx, [esp + 0x21c]
mov edx, str.MSDK_MERIT
call fcn.00427e30
mov ecx, ebx
push ecx
push str.__Merit___s
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0xfa
mov eax, ebx
push eax
push 0x45c9e8
push str.apiversion
push str.Setup
call esi
push ebp
mov edx, str.MSDK_APIVERSION
call fcn.00427e30
mov ecx, ebx
push ecx
push str.__APIVersion___s
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
cmp byte [edi + 0xd08], 0
mov ebx, 0x4623e4
jne 0x4294d8
mov ebx, 0x4623ec
push ebp
mov edx, str.MSDK_SRC
call fcn.00427e30
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0043d02a
add esp, 0x410
ret
push str.config.ini_not_found
push 0x46fa40
mov eax, 1
call fcn.00431730
mov ecx, dword [esp + 0x41c]
add esp, 8
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043d02a
add esp, 0x410
ret
Function at 0x42fb10
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x43ae80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x470d30]
push 0
push 0x43adc0
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 0x430210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4574c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
push esi
push str.Reading_action_list_from_resource:__s
push 0x46fa40
xor eax, eax
mov dword [esp + 0x40], ebp
call fcn.00431730
add esp, 0xc
push 0x464584
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
je 0x43030f
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebp
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 ebp, eax
call fcn.0043ce31
add esp, 4
push ebx
mov esi, eax
push 0
push esi
call fcn.00448fa0
add esp, 0xc
push edi
push ebp
push esi
call fcn.00444620
add esp, 0xc
push 0xa
lea edi, [esi + 2]
lea ecx, [esp + 0x1c]
call fcn.0043c130
add esp, 4
push esi
call fcn.0043ed74
mov ecx, dword [esp + 0x40]
add esp, 4
lea eax, [esp + 0x18]
push eax
add ecx, 0xc7c
push ecx
call fcn.00413870
mov edi, eax
test edi, edi
jne 0x43030d
push str.Error_loading_resource_action_file
push 0x46fa40
lea eax, [edi + 2]
call fcn.00431730
add esp, 8
mov dword [0x46fa64], 0xa006
xor ebp, ebp
mov eax, dword [esp + 0x1c]
cmp edi, ebp
setne bl
cmp eax, ebp
je 0x43033a
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
push edx
call fcn.00411dd0
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call fcn.0043e965
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x430c10
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push str.Cleanup
push str.__s_
push 0x46fa40
xor eax, eax
mov esi, ecx
call fcn.00431730
mov ebx, 1
add dword [0x46fa60], ebx
add esp, 0xc
cmp byte [esi + 0xce4], 0
je 0x430d60
cmp dword [esi + 0xa34], 8
jb 0x430c6a
mov esi, dword [esi + 0xa20]
jmp 0x430c70
add esi, 0xa20
push edi
push esi
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0043f42c
add esp, 0xc
push str.UninstallSetup.exe
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x80
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0xc]
push ecx
push str.Marking___s__for_deletion_on_reboot
push 0x46fa40
xor eax, eax
call fcn.00431730
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call edi
test eax, eax
je 0x430d91
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsSystemFolderW]
push 0
lea eax, [esp + 0x14]
push eax
call ebp
test eax, eax
jne 0x430d40
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x430d40
lea edx, [esp + 0x10]
push edx
push str.Marking___s__for_deletion_on_reboot
push 0x46fa40
call fcn.00431730
add esp, 0xc
push 4
push 0
lea eax, [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call edi
test eax, eax
jne 0x430cf0
sub dword [0x46fa60], 1
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0043d02a
add esp, 0x20c
ret
push str.Cleanup_is_being_skipped
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 8
sub dword [0x46fa60], ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0043d02a
add esp, 0x20c
ret
sub dword [0x46fa60], ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043d02a
add esp, 0x20c
ret
Function at 0x4311d0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x39c
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x398], eax
mov eax, dword [0x470c20]
cmp dword [eax + 0xce0], 8
push esi
mov esi, ecx
jb 0x4311fd
mov eax, dword [eax + 0xccc]
jmp 0x431202
add eax, 0xccc
push eax
lea eax, [esp + 0x198]
push 0x104
push eax
call fcn.0043f42c
add esp, 0xc
push str._version.ini
lea ecx, [esp + 0x198]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x194]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4312a2
lea eax, [esp + 0x194]
push eax
push 0xc8
lea ecx, [esp + 0xc]
push ecx
push 0
push str.PackVer
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431270
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
call fcn.00404170
mov al, 1
pop esi
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.0043d02a
add esp, 0x39c
ret
mov ecx, dword [esp + 0x39c]
pop esi
xor ecx, esp
xor al, al
call fcn.0043d02a
add esp, 0x39c
ret
Function at 0x431730
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x1c], 8
mov esi, eax
jb 0x431745
mov eax, dword [edi + 8]
jmp 0x431748
lea eax, [edi + 8]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4318ae
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 1
jne 0x431785
mov esi, 0x464ea4
jmp 0x431794
cmp esi, 2
mov esi, 0x464eac
je 0x431794
mov esi, 0x45c9e8
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4317a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
push edx
push esi
push ebp
call ebx
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4317d0
sub eax, edx
mov edx, dword [edi + 0x20]
sar eax, 1
add edx, edx
test edx, edx
mov esi, eax
mov eax, 0x471608
jle 0x43180f
mov ecx, edx
shr ecx, 1
mov eax, 0x200020
mov edi, 0x471608
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x18]
lea eax, [edx*2 + 0x471608]
mov word [eax], 0
mov ecx, dword [edi + 0x20]
push 0
add ecx, ecx
lea eax, [esp + 0x14]
push eax
sub ecx, esi
add ecx, ecx
push ecx
push 0x471608
push ebp
call ebx
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00440f34
mov esi, eax
add esi, 3
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043ce31
mov ecx, dword [esp + 0x28]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push ecx
push esi
push edi
call fcn.004410c9
push 0x464eb8
push esi
push edi
call fcn.0043f498
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431880
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0x14]
push edx
add eax, eax
push eax
push edi
push ebp
call ebx
push edi
call fcn.0043ed74
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x4319c0
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 8]
push eax
mov eax, dword [edx]
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
ret 4

Function at 0x4319e0
Capabilities:
Set registry value

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

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

Function at 0x431a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov dword [esp + 8], 0
jbe 0x431a82
call fcn.0043e955
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0xc], eax
jbe 0x431a93
call fcn.0043e955
test esi, esi
je 0x431a9b
cmp esi, esi
je 0x431aa0
call fcn.0043e955
cmp edi, dword [esp + 0xc]
je 0x431ad7
test esi, esi
jne 0x431aaf
call fcn.0043e955
cmp edi, dword [esi + 8]
jb 0x431ab9
call fcn.0043e955
cmp edi, dword [esi + 8]
mov ecx, dword [esp + 8]
mov eax, dword [edi + 0x14]
lea edx, [ecx + eax + 1]
mov dword [esp + 8], edx
jb 0x431ad2
call fcn.0043e955
add edi, 0x1c
jmp 0x431a82
mov eax, dword [esp + 8]
add eax, 1
xor ecx, ecx
mov dword [esp + 8], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043ce31
mov edi, eax
add esp, 4
lea eax, [esp + 8]
push eax
push edi
mov eax, esi
call fcn.0043b910
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
add esp, 8
lea edx, [ecx + ecx]
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ecx]
push edi
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x431b40
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431b50
sub eax, edx
sar eax, 1
add eax, 1
push eax
call fcn.0043ce31
mov ebx, eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x431be7
cmp ax, 0x61
jb 0x431b87
cmp ax, 0x66
ja 0x431b87
mov al, byte [esi]
sub al, 0x57
jmp 0x431b9d
cmp ax, 0x41
jb 0x431b99
cmp ax, 0x46
ja 0x431b99
mov al, byte [esi]
sub al, 0x37
jmp 0x431b9d
mov al, byte [esi]
sub al, 0x30
movzx ecx, word [esi + 2]
add esi, 2
shl al, 4
cmp cx, 0x61
jb 0x431bba
cmp cx, 0x66
ja 0x431bba
mov cl, byte [esi]
sub cl, 0x57
jmp 0x431bd4
cmp cx, 0x41
jb 0x431bcf
cmp cx, 0x46
ja 0x431bcf
mov dl, byte [esi]
sub dl, 0x37
or al, dl
jmp 0x431bd6
mov cl, byte [esi]
sub cl, 0x30
or al, cl
add esi, 2
mov byte [ebx + edi], al
movzx eax, word [esi]
add edi, 1
test ax, ax
jne 0x431b75
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
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.0043ed74
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
ret 8
Function at 0x431c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [eax]
push 0
push 0
push edx
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
add eax, 1
pop ecx
ret 4

Function at 0x431c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp]
push esi
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push esi
push ecx
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x431c85
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x10]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.0043ce31
mov ecx, dword [ebp]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
push 0
push 0
push esi
push ecx
call ebx
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431cc0
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00404170
push edi
call fcn.0043ed74
add esp, 4
pop edi
pop esi
xor eax, eax
test ebx, ebx
pop ebp
sete al
pop ebx
ret 8

Function at 0x431d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp]
push esi
push edi
mov edi, eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push edi
push ecx
mov dword [esp + 0x30], 0
call ebx
test eax, eax
je 0x431d39
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x18]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043ce31
mov ecx, dword [ebp]
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
push 0
push 0
push edi
push ecx
call ebx
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
mov edi, eax
call fcn.0043b840
add esp, 4
push esi
call fcn.0043ed74
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret 8
Function at 0x431e80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, dword [esp + 0x230]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push esi
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x431f6f
lea edx, [esp + 0x10]
push edx
mov eax, edi
or eax, 0xf003f
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
test eax, eax
jne 0x431f6f
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00431e80
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x100
jne 0x431f5b
mov eax, dword [0x470dd4]
test eax, eax
jne 0x431f43
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call ebp
test eax, eax
mov dword [0x470dd4], eax
je 0x431f54
push 0
push 0x100
lea edx, [esp + 0x20]
push edx
push esi
call eax
jmp 0x431f67
mov eax, 0x32
jmp 0x431f67
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x431eb2
cmp eax, 0x103
pop edi
pop esi
pop ebp
pop ebx
jne 0x431f7c
xor eax, eax
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0043d02a
add esp, 0x214
ret

Function at 0x432580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x470d30]
push edi
push str.LRCDATA
push str.LICENSE
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4325a3
xor al, al
pop edi
ret 4
mov ecx, dword [0x470d30]
push ebx
push ebp
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x470d30]
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 ebp, eax
call fcn.0043ce31
push ebx
mov edi, eax
push 0
push edi
call fcn.00448fa0
push esi
push ebp
push edi
call fcn.00444620
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4325f1
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00404170
push edi
call fcn.0043ed74
add esp, 4
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
ret 4
Function at 0x435080
Capabilities:
Check for peb beingdebugged flag
Create service
Modify service
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x456888
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov eax, edi
xor ebx, ebx
mov dword [esp + 0x44], ebp
xor esi, esi
lea edx, [eax + 2]
jmp 0x4350d0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4350d0
sub eax, edx
sar eax, 1
je 0x435183
push 0x2c
lea ecx, [esp + 0x2c]
call fcn.0043c130
add esp, 4
lea ecx, [esp + 0x28]
xor esi, esi
call fcn.0040d9c0
test eax, eax
jbe 0x43514d
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x435127
mov ecx, dword [esp + 0x30]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x435130
call fcn.0043e955
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + ebp + 0x14]
lea ecx, [esp + 0x28]
lea ebx, [ebx + eax + 1]
add esi, 1
add ebp, 0x1c
call fcn.0040d9c0
cmp esi, eax
jb 0x435106
xor ebp, ebp
add ebx, 1
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x1c], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0043ce31
mov esi, eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x30]
call fcn.0043b910
add esp, 8
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x435195
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x5c]
push ebp
push ebp
push esi
push ebp
mov ecx, eax
push ebp
and ecx, 0x10000000
xor edx, edx
cmp edx, ecx
mov edx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x68]
push 1
sbb ecx, ecx
and eax, 0xefffffff
push eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [edi]
neg ecx
push 0xf003f
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x7c]
push ecx
push edx
push eax
mov dword [edi + 4], ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebp
mov dword [edi + 4], eax
je 0x435232
mov ecx, dword [esp + 0x64]
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov dword [esp + 0x2c], ecx
call ebx
test eax, eax
jne 0x435210
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x43523c
call fcn.00435990
cmp eax, 0x6000100
jb 0x43523c
cmp eax, 0xffffffff
ja 0x43523c
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 3
push ecx
call ebx
test eax, eax
jne 0x43523c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
cmp esi, ebp
je 0x435249
push esi
call fcn.0043ed74
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x43526f
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x30]
push edx
call fcn.00411dd0
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.0043e965
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x1c