joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da80
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447ef0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
test esi, esi
jne 0x40daf6
mov ecx, dword [ebp + 0xc]
call fcn.0040d790
mov esi, eax
push 0x64
mov dword [ebp - 0x10], esi
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x14
jl 0x40dabb
test esi, esi
jne 0x40daf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
test ebx, ebx
jne 0x40db47
mov eax, dword [ebp + 8]
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x64
mov ebx, eax
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x14
jl 0x40daf8
test ebx, ebx
jne 0x40db47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x40db33
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40db84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x40db68
push ebx
call edi
test esi, esi
je 0x40db6f
push esi
call edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x40db91
push ebx
call edi
test esi, esi
je 0x40db98
push esi
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dbb0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
cmp dword [ebp - 0x30], 0
jne 0x40dc20
mov ecx, 0x451820
call fcn.0040d790
push 0x64
mov dword [ebp - 0x30], eax
inc edi
call ebx
cmp edi, 0x14
jl 0x40dbf2
cmp dword [ebp - 0x30], 0
jne 0x40dc20
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dd24
xor edi, edi
test esi, esi
jne 0x40dc67
mov eax, dword [ebp - 0x30]
push 0xf01ff
push str.Time_Control_Service
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x64
mov esi, eax
inc edi
call ebx
cmp edi, 0x14
jl 0x40dc22
test esi, esi
jne 0x40dc67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dc60
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x40dd24
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40dca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x420
je 0x40dca4
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40dc93
push esi
call ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dc9d
push eax
call ebx
mov eax, edi
jmp 0x40dd24
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x34], eax
xor eax, eax
xor edi, edi
jmp 0x40dcb6
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40dcd2
lea ecx, [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x64
mov dword [ebp - 0x38], eax
inc edi
call ebx
cmp edi, 0x14
jl 0x40dcb3
mov edi, 4
cmp dword [ebp - 0x28], edi
je 0x40dd0b
lea esp, [esp]
mov edx, dword [ebp - 0x14]
push edx
call ebx
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], edi
je 0x40dd0b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x34]
cmp eax, 0x7530
ja 0x40dd40
cmp dword [ebp - 0x28], edi
jne 0x40dce0
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40dd18
push esi
call edi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dd22
push eax
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40dd4d
push esi
call edi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dd57
push eax
call edi
mov eax, 0x800705b4
jmp 0x40dd24
Function at 0x40df40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [esi + 0x3c], 0
push ebx
push edi
jne 0x40df66
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
call fcn.0040dff0
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x14]
push 1
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
je 0x40dfd9
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [esi + 0x24], 1
mov ebx, eax
je 0x40dfb0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, 0x7530
ja 0x40dfb8
cmp dword [esi + 0x24], 1
jne 0x40df94
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x800705b4
lea edx, [ebp - 0x10]
push edx
mov ecx, 0x451820
call fcn.00404c70
push 0x456818
lea eax, [ebp - 0x10]
push eax
call fcn.00433e48
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e4e0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447da0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x45c070]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x3c], esi
je 0x40e533
xor ecx, ecx
cmp dword [eax + 0x24], 4
sete al
jmp 0x40e652
mov dword [esp + 0x18], esi
xor ebx, ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x60], 1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e554
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0
jne 0x40e578
mov ecx, dword [eax + 8]
call fcn.0040d790
push 0x64
mov dword [esp + 0x1c], eax
inc esi
call edi
cmp esi, 0x14
jl 0x40e550
cmp dword [esp + 0x18], 0
je 0x40e5b9
xor esi, esi
test ebx, ebx
jne 0x40e5c0
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
push 0xf01ff
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x64
mov ebx, eax
inc esi
call edi
cmp esi, 0x14
jl 0x40e57a
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x40e5c4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e5b9
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x40e652
mov dword [esp + 0x20], ebx
xor eax, eax
xor esi, esi
jmp 0x40e5d4
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40e62c
lea ecx, [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x64
mov dword [esp + 0x20], eax
inc esi
call edi
cmp esi, 0x14
jl 0x40e5d0
cmp dword [esp + 0x1c], 0
jne 0x40e62c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40e60d
and eax, 0xffff
or eax, 0x80070000
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, str.bRes
call fcn.00404c70
push 0x456818
lea eax, [esp + 0x28]
push eax
call fcn.00433e48
cmp dword [esp + 0x38], 4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sete byte [esp + 0x17]
test ebx, ebx
je 0x40e643
push ebx
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e64e
push eax
call esi
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret 4
Function at 0x412890
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4128de
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4128cd
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop ebx
call fcn.0042d4af
mov esp, ebp
pop ebp
ret
Function at 0x415e00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 0x4530d4
push 0x460238
call fcn.00403a80
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
mov eax, dword [0x460238]
lea edx, [ebp - 0x20]
mov ecx, 0x414
push edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xe], 0
mov word [ebp - 0x10], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esp, ebp
pop ebp
ret

Function at 0x4166d0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447608
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004037b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov esi, 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], 0
cmp dword [eax - 4], esi
jle 0x41672d
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00403590
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push eax
push ecx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x30], esi
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416780
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4167a0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x416813
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x416813
push 1
push eax
push 0x1e
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret
Function at 0x41ae60
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x453d68
mov edi, eax
push 0x6e
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41ae84
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41aefc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41aefc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41aefc
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41af05
call fcn.00409020
test eax, eax
js 0x41aefc
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41af09
call fcn.00409020
test eax, eax
jns 0x41af09
test esi, esi
je 0x41aefc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov esi, eax
jmp 0x41aed5
test esi, esi
je 0x41af14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41be90
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [0x460238]
call fcn.0041b2e0
test eax, eax
jne 0x41beb7
push 0x30
push 0x450b90
push str.Installation_file_corrupted_or_out_of_disk_space.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop ecx
ret
call fcn.00412890
test eax, eax
jne 0x41bed7
push 0x30
push 0x450b90
push str.Admin_rights_needed.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop ecx
ret
push 0
push 0
push esi
push 0x41a130
push 4
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x74]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x460238]
push 1
push 1
push edx
call fcn.00410ef0
add esp, 0xc
xor eax, eax
pop ecx
ret

Function at 0x41bf20
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x460238]
call fcn.0041b2e0
test eax, eax
jne 0x41bf45
push 0x30
push 0x450b90
push str.Installation_file_corrupted_or_out_of_disk_space.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
ret
call fcn.00412890
test eax, eax
jne 0x41bf64
push 0x30
push 0x450b90
push str.Admin_rights_needed.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
ret
push 0
push 0
push esi
push 0x41a150
push 4
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x74]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret
Function at 0x41f200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f26e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41f23d
cmp eax, 2
jne 0x41f258
mov eax, dword [ebp - 4]
test esi, esi
je 0x41f268
test eax, eax
je 0x41f263
test al, 1
jne 0x41f258
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41f268
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x420870
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x45c070]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
push 0x2001f
push ebx
push edi
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
cmp esi, ebx
jne 0x4208e4
xor eax, eax
cmp ecx, ebx
je 0x4208d6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x10], ecx
cmp eax, ebx
je 0x4208f2
cmp ecx, ebx
je 0x42098b
push ecx
jmp 0x420985
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x42095e
lea ebx, [ebx]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00420870
mov edi, eax
cmp edi, ebx
jne 0x4209a4
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x420920
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x420971
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x20]
call fcn.00420a40
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42098b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4209b3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret 4
Function at 0x421590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446d36
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x424], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
cmp esi, edi
jne 0x421610
call fcn.00409020
mov edi, eax
jmp 0x42174d
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x42162f
call fcn.00409020
jmp 0x421744
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, edi
jne 0x42164b
call fcn.00409020
jmp 0x421744
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x421690
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x42167b
lea eax, [ebp - 0x418]
call fcn.004202e0
lea esi, [ebp - 0x424]
call fcn.00421ed0
mov eax, 0x8007000e
jmp 0x421768
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x4216a5
cmp eax, 0xffffffff
jbe 0x4216af
push 0x80070057
call fcn.004036b0
cmp eax, 0x400
jbe 0x4216e1
lea edx, [ebp - 0x418]
push edx
call fcn.00420350
jmp 0x4216ed
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, edi
jne 0x421705
mov edi, 0x8007000e
jmp 0x421746
mov ecx, dword [ebp - 0x428]
push ebx
push eax
push ebx
push ecx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x421723
call fcn.00409020
jmp 0x421744
mov ecx, dword [ebp - 0x418]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.004213f0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x421766
lea eax, [ebp - 0x418]
call fcn.004202e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret 0xc
Function at 0x422430
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x422459
mov ecx, esi
mov eax, edi
call fcn.00403660
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, eax
cmp eax, 0xffffffff
jne 0x422485
mov ecx, dword [edi]
test ecx, ecx
je 0x422489
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x422476
sub ecx, esi
sar ecx, 1
test ecx, ecx
js 0x42249d
mov edx, dword [edi]
cmp ecx, dword [edx - 8]
jg 0x42249d
mov dword [edx - 0xc], ecx
mov edx, dword [edi]
xor esi, esi
mov word [edx + ecx*2], si
pop esi
ret
push 0x80070057
call fcn.004036b0
int3
Function at 0x4247c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447178
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea edi, [esi + 0x20]
push 1
mov eax, edi
call fcn.00424de0
test eax, eax
je 0x424880
test edi, edi
je 0x424805
lea eax, [edi - 0x20]
jmp 0x424807
xor eax, eax
mov eax, dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x400
push eax
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push pe_nt_image_headers32
push eax
call esi
mov dword [0x45f370], eax
test edi, edi
je 0x424838
lea eax, [edi - 0x20]
jmp 0x42483a
xor eax, eax
mov ecx, dword [eax + 4]
push 0x403
push ecx
call ebx
push 0
push 0
push pe_nt_image_headers32
push eax
call esi
mov dword [0x45f374], eax
test edi, edi
je 0x42485f
lea eax, [edi - 0x20]
jmp 0x424861
xor eax, eax
mov edx, dword [eax + 4]
push 0x404
push edx
call ebx
push 0
push 0
push pe_nt_image_headers32
push eax
call esi
mov esi, dword [ebp + 8]
mov dword [0x45d528], eax
lea ebx, [esi + 0x48]
mov edi, 0x460250
call fcn.00422430
mov ax, word [ebp + 0xc]
cmp ax, 2
jne 0x4248b2
mov eax, dword [esi + 4]
push eax
call fcn.00428500
add esp, 4
test al, al
je 0x424967
push 3
jmp 0x42495d
cmp ax, 1
jne 0x424967
cmp dword [0x45f370], 0
je 0x42495b
mov ecx, dword [0x46024c]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4248eb
cmp dword [0x45f36c], 5
je 0x42495b
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42495b
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov edi, 0xc4
mov dword [ebp - 4], 0
call fcn.004032e0
test eax, eax
je 0x424924
push eax
mov eax, edi
lea edi, [ebp + 0xc]
call fcn.00403490
mov ebx, dword [ebp + 0xc]
push 0
push 0x451820
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424967
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x424967
push 1
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8