joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a531
Capabilities:
Check os version
Shutdown system

Disassembly:
push 0x13c
mov eax, 0x469daa
call fcn.0045f439
xor esi, esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], 0x114
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x41a62b
push 2
pop ebx
cmp dword [ebp - 0x118], ebx
jne 0x41a648
lea eax, [ebp - 0x130]
push eax
push 0x28
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41a5e3
lea eax, [ebp - 0x138]
push eax
push 0x40c440
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x140], eax
xor edi, edi
inc edi
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x13c], ebx
push esi
push esi
push esi
lea eax, [ebp - 0x148]
push eax
push esi
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
jmp 0x41a5e6
xor edi, edi
inc edi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x124], 5
ja 0x41a60d
jne 0x41a5fc
cmp dword [ebp - 0x120], esi
ja 0x41a60d
push edi
push edi
push esi
push 0x409384
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
jmp 0x41a621
push SysReAllocString
push edi
push edi
push esi
push 0x409384
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov dword [ebp - 0x12c], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x12c], esi
setne al
call fcn.0045f4a4
ret
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jmp 0x41a631
Function at 0x41cc58
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x134
mov eax, 0x46e2e1
call fcn.0045f3fe
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x131], bl
jb 0x41cc85
mov eax, dword [esi + 4]
jmp 0x41cc88
lea eax, [esi + 4]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x138], eax
cmp eax, 0xffffffff
jne 0x41ccec
push esi
lea eax, [ebp - 0x2c]
push 0x40cc50
push eax
call fcn.00414de7
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41ccca
lea eax, [ebp - 0x28]
mov esi, dword [0x481200]
push eax
call fcn.0042d729
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004610c9
xor al, al
jmp 0x41cde4
push ebx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 2]
push eax
call fcn.004610c9
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x41cd39
push 0x40cc80
lea ecx, [ebp - 0x2c]
call fcn.004610c9
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41cd25
lea eax, [ebp - 0x28]
mov esi, dword [0x481200]
push eax
call fcn.0042d729
or dword [ebp - 4], 0xffffffff
push ebx
push edi
jmp 0x41ccdd
lea eax, [edi + 2]
push eax
push ebx
push esi
call fcn.004433d0
add esp, 0xc
push ebx
lea eax, [ebp - 0x140]
push eax
push edi
push esi
push dword [ebp - 0x138]
mov dword [ebp - 0x140], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x41cdcb
mov eax, 0xfeff
cmp word [esi], ax
jne 0x41cd82
mov ecx, dword [ebp - 0x13c]
lea eax, [esi + 2]
push eax
call fcn.004610c9
jmp 0x41cdc4
push esi
lea ecx, [ebp - 0x130]
call fcn.004610c9
mov dword [ebp - 4], 2
push dword [ebp - 0x130]
mov ecx, dword [ebp - 0x13c]
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x130], eax
je 0x41cdc4
push dword [ebp - 0x130]
call fcn.0043e7ba
pop ecx
mov byte [ebp - 0x131], 1
push esi
call fcn.004610c9
pop ecx
push dword [ebp - 0x138]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, byte [ebp - 0x131]
call fcn.0045f490
ret 4
Function at 0x41e5b0
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [0x481200]
push esi
push 0x40d7a0
mov esi, eax
call fcn.0042d4e5
xor eax, eax
inc eax
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x3c]
cmp edx, dword [ecx]
je 0x41e5de
mov ecx, edx
mov ecx, dword [ecx + 4]
inc eax
cmp eax, 1
mov dword [esi + 0x3c], ecx
jle 0x41e5c6
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [eax + 4]
call edi
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + 8]
test eax, eax
je 0x41e601
lea ecx, [eax + 4]
jmp 0x41e603
xor ecx, ecx
mov eax, dword [esi + 0x40]
cmp eax, ecx
je 0x41e610
push 0
push dword [eax]
call edi
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + 8]
test eax, eax
je 0x41e61f
add eax, 4
jmp 0x41e621
xor eax, eax
push 5
push dword [esi + 4]
mov dword [esi + 0x40], eax
call edi
pop edi
test eax, eax
jne 0x41e644
mov esi, dword [0x481200]
push 0x40d744
call fcn.0042d729
xor al, al
pop esi
ret
mov ecx, dword [0x481200]
push 0x40d76c
call fcn.0042d4e5
mov al, 1
pop esi
ret
Function at 0x421374
Capabilities:
Get common file path

Disassembly:
push 0x2dc
mov eax, 0x46d581
call fcn.0045f3fe
push dword [ebp + 0xc]
mov dword [ebp - 0x25c], esi
push dword [ebp + 8]
push esi
call fcn.00421ebd
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 8]
lea ecx, [esi + 0x2c4]
mov dword [esi], 0x40ddb0
mov dword [edi], 0x40ddf8
mov byte [esi + 0x2c0], bl
mov byte [esi + 0x2c1], bl
call fcn.00411d68
mov byte [ebp - 4], 1
lea ecx, [esi + 0x2e0]
call fcn.00411d68
mov byte [ebp - 4], 2
push 1
push edi
lea eax, [esi + 0x2fc]
push eax
call fcn.00422015
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x258]
call fcn.00411d68
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x23c]
call fcn.00411d68
mov byte [ebp - 4], 5
mov ecx, dword [0x481204]
lea eax, [ebp - 0x258]
push eax
push 0x1d
pop eax
call fcn.004610c9
mov ecx, dword [0x481204]
lea eax, [ebp - 0x23c]
push eax
push 0x17
pop eax
call fcn.004610c9
push 0x40dd34
lea ecx, [ebp - 0x2b0]
call fcn.004610c9
mov edi, eax
mov byte [ebp - 4], 6
push 0x40dd40
lea ecx, [ebp - 0x294]
call fcn.004610c9
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.00419205
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x23c]
push ecx
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00419205
add esp, 0xc
mov byte [ebp - 4], 9
push edi
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.00419205
add esp, 0xc
mov byte [ebp - 4], 0xa
push eax
lea ecx, [esi + 0x2c4]
call fcn.004610c9
mov byte [ebp - 4], 9
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x2e8]
call fcn.004610c9
mov byte [ebp - 4], 8
push ebx
push edi
lea ecx, [ebp - 0x278]
call fcn.004610c9
mov byte [ebp - 4], 7
push ebx
push edi
lea ecx, [ebp - 0x2cc]
call fcn.004610c9
mov byte [ebp - 4], 6
push ebx
push edi
lea ecx, [ebp - 0x294]
call fcn.004610c9
mov byte [ebp - 4], 5
push ebx
push edi
lea ecx, [ebp - 0x2b0]
call fcn.004610c9
push 0x40dd4c
lea ecx, [esi + 0x2e0]
call fcn.004610c9
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.004433d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
push 0x40dd68
push 0x20a
lea eax, [ebp - 0x220]
push eax
call fcn.004610c9
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov byte [ebp - 4], 4
push ebx
push edi
lea ecx, [ebp - 0x23c]
call fcn.004610c9
mov byte [ebp - 4], 3
push ebx
push edi
lea ecx, [ebp - 0x258]
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0045f490
ret 8
Function at 0x421e18
Capabilities:
Create process on windows

Disassembly:
push 0x1c
mov eax, 0x468197
call fcn.0045f38b
mov esi, ecx
call fcn.004610c9
cmp eax, 1
lea eax, [esi + 0x2e0]
je 0x421e3c
lea eax, [esi + 0x2c4]
cmp dword [eax + 0x18], 8
jb 0x421e47
mov ecx, dword [eax + 4]
jmp 0x421e4a
lea ecx, [eax + 4]
push 0
mov eax, 0x409384
push eax
push eax
push ecx
push 0x40dda0
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x421eb0
lea eax, [esi + 0x2c4]
cmp dword [eax + 0x18], 8
jb 0x421e78
mov eax, dword [eax + 4]
jmp 0x421e7b
add eax, 4
push eax
push 0x122c
lea eax, [ebp - 0x28]
push eax
call fcn.0044be36
and dword [ebp - 4], 0
mov esi, dword [esi + 0x24]
lea ecx, [esi + 0x28]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0xc]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004610c9
xor al, al
jmp 0x421eb2
mov al, 1
call fcn.0045f477
ret

Function at 0x422f96
Capabilities:
Create process on windows

Disassembly:
push 0x2c
mov eax, 0x46cc9b
call fcn.0045f3fe
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
sub ecx, 0x100
mov dword [ebp - 0x30], ebx
je 0x422fe2
sub ecx, 0x11
je 0x422fce
sub ecx, 0xf1
jne 0x423100
mov ecx, dword [eax + 0x2b4]
jmp 0x422ff6
mov ecx, esi
shr ecx, 0x10
cmp cx, 1
jne 0x422fde
movzx ecx, si
jmp 0x422ff6
mov dword [edx], ebx
jmp 0x422ff9
cmp esi, 0xd
je 0x422ff0
cmp esi, 0x20
jne 0x423100
mov ecx, dword [eax + 0x2b0]
mov dword [ebp - 0x30], ecx
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, 0x40deb4
cmp dword [ebp - 0x30], ebx
je 0x4230be
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0x2e8]
add ecx, 0xfffffeb8
mov dword [ebp - 0x38], edx
cmp ecx, edx
jae 0x4230be
mov edx, dword [ebp - 0x30]
add edx, 0xfffffeb8
js 0x4230be
mov eax, dword [eax + 0x2e4]
mov eax, dword [eax]
mov dword [ebp - 0x34], ebx
cmp ecx, ebx
jbe 0x423059
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x38]
jae 0x423057
inc dword [ebp - 0x34]
mov eax, dword [eax]
cmp dword [ebp - 0x34], ecx
jb 0x423045
xor ebx, ebx
lea ecx, [ebp - 0x2c]
add eax, 8
push ecx
push eax
call fcn.00422257
mov dword [ebp - 4], ebx
push 0x409384
lea ecx, [ebp - 0x2c]
call fcn.004610c9
test eax, eax
je 0x4230af
push 0x40de7c
lea ecx, [ebp - 0x2c]
call fcn.004610c9
test eax, eax
jne 0x42309a
push 1
push ebx
push 0x40de84
push 0x40de9c
jmp 0x4230ab
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4230a6
lea eax, [ebp - 0x28]
push 1
push ebx
push ebx
push eax
push edi
push ebx
call esi
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004610c9
cmp dword [ebp - 0x30], 0x26d
jne 0x423100
push 0x12cb
lea eax, [ebp - 0x2c]
push eax
call fcn.0044bdfb
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
cmp dword [eax + 0x18], 8
jb 0x4230e6
mov eax, dword [eax + 4]
jmp 0x4230e9
add eax, 4
push ecx
push ebx
push ebx
push eax
push edi
push ebx
call esi
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004610c9
xor eax, eax
call fcn.0045f490
ret 8
Function at 0x424ac1
Capabilities:
Get graphical window text

Disassembly:
push 0x440
mov eax, 0x46f86e
call fcn.0045f3fe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x430], eax
xor eax, eax
mov ebx, 0x208
push ebx
mov word [ebp - 0x21c], ax
xor esi, esi
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.004433d0
xor eax, eax
push ebx
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push esi
push eax
call fcn.004433d0
add esp, 0x18
push 0x13a
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x44c]
call fcn.004610c9
mov dword [ebp - 4], esi
lea edx, [ebp - 0x44c]
mov ecx, edi
call fcn.00424d88
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x44c]
call fcn.004610c9
test bl, bl
je 0x424b9b
lea eax, [edi + 0x2c8]
cmp dword [eax + 0x18], 8
jb 0x424b83
mov eax, dword [eax + 4]
jmp 0x424b86
add eax, 4
push eax
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.004610c9
add esp, 0xc
mov eax, dword [edi + 0x24]
lea ebx, [edi + 0x2e4]
mov dword [ebx + 0x54c], eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x528]
call fcn.004610c9
lea eax, [ebp - 0x21c]
push eax
lea esi, [ebx + 0x20]
call fcn.0042e96a
mov dword [ebx + 0x548], 0x6a
call dword [sym.imp.USER32.dll_GetActiveWindow]
push ebx
lea esi, [ebx + 8]
mov dword [ebp - 0x42c], eax
call fcn.0041f6c6
push dword [ebp - 0x42c]
mov ebx, dword [0x47ed8c]
call fcn.004610c9
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x424caf
lea eax, [edi + 0x5e2]
push eax
lea eax, [ebp - 0x428]
push 0x105
push eax
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x44c]
call fcn.004610c9
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x44c]
mov ecx, edi
call fcn.00424d88
mov esi, eax
or dword [ebp - 4], 0xffffffff
push 0
push ebx
lea ecx, [ebp - 0x44c]
call fcn.004610c9
test esi, esi
je 0x424caf
lea eax, [ebp - 0x428]
lea esi, [edi + 0x2c8]
push eax
mov ecx, esi
call fcn.004610c9
cmp dword [esi + 0x18], 8
jb 0x424c7a
mov esi, dword [esi + 4]
jmp 0x424c7d
add esi, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x42c], esp
push esi
call fcn.004610c9
mov dword [ebp - 4], 2
push 0x13a
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00420c97
mov eax, dword [ebp - 0x430]
mov dword [eax], ebx
xor eax, eax
call fcn.0045f490
ret 4
Function at 0x42c563
Capabilities:
Create process on windows

Disassembly:
push 0x20
mov eax, 0x46aac0
call fcn.0045f3fe
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
sub ecx, 0x100
je 0x42c5ab
sub ecx, 0x11
je 0x42c597
sub ecx, 0xf1
jne 0x42c62e
mov eax, dword [esi + 0x2b4]
jmp 0x42c5bb
mov ecx, edi
shr ecx, 0x10
cmp cx, 1
jne 0x42c5a7
movzx eax, di
jmp 0x42c5bb
mov dword [edx], ebx
jmp 0x42c5bb
cmp edi, 0xd
je 0x42c5b5
cmp edi, 0x20
jne 0x42c62e
mov eax, dword [esi + 0x2b0]
cmp eax, ebx
je 0x42c62e
cmp eax, 0x26b
jne 0x42c62e
lea ecx, [ebp - 0x2c]
call fcn.00411d68
mov dword [ebp - 4], ebx
mov ecx, dword [0x481204]
lea eax, [ebp - 0x2c]
push eax
push 8
pop eax
call fcn.004610c9
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42c5ef
lea eax, [ebp - 0x28]
mov esi, dword [0x481200]
push eax
push 0x40e93c
call fcn.004610c9
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x42c60e
lea eax, [ebp - 0x28]
push 1
push ebx
push ebx
push eax
push 0x40deb4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004610c9
xor eax, eax
call fcn.0045f490
ret 4

Function at 0x42d41b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 4], 0xffffffff
je 0x42d43a
mov al, 1
jmp 0x42d4d4
cmp dword [esi + 0x20], 8
jb 0x42d445
mov eax, dword [esi + 0xc]
jmp 0x42d448
lea eax, [esi + 0xc]
push ebx
xor ebx, ebx
push ebx
push 0x80000080
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x42d46e
xor al, al
jmp 0x42d4d3
cmp dword [esi + 0x2c], ebx
jne 0x42d4ac
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x42d4ac
push 6
pop eax
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
mov byte [ebp - 0xc], 0xff
mov byte [ebp - 0xb], 0xfe
mov byte [ebp - 0xa], 0xd
mov byte [ebp - 9], bl
mov byte [ebp - 8], 0xa
mov byte [ebp - 7], bl
call dword [sym.imp.kernel32.dll_WriteFile]
push 2
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0x40ece0
mov ecx, esi
call fcn.0042d4e5
push 0x40ec90
mov ecx, esi
call fcn.0042d4e5
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dff7
leave
ret
Function at 0x4309b0
Capabilities:
Get graphical window text

Disassembly:
push 0x108
mov eax, 0x46c72b
call fcn.0045f3fe
mov esi, ecx
cmp dword [esi + 0x514], 0
jne 0x430bc7
push 0x141
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x430a28
push 0x104
lea edi, [esi + 0x2fe]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push 0x2e
push edi
call fcn.004610c9
pop ecx
pop ecx
test eax, eax
je 0x430a28
jmp 0x430a24
cmp word [eax], 0x2e
jne 0x430a28
cmp word [eax + 2], 0
jne 0x430a28
push eax
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.USER32.dll_CharPrevW]
cmp eax, edi
jne 0x430a0a
lea edx, [esi + 0x2fe]
mov eax, edx
push 2
lea edi, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x430a36
sub eax, edi
mov edi, dword [esi + 0x548]
sar eax, 1
cmp eax, edi
jb 0x430b0d
xor eax, eax
push 0xc6
mov word [ebp - 0xd8], ax
xor ebx, ebx
lea eax, [ebp - 0xd6]
push ebx
push eax
call fcn.004433d0
push edi
push 0x40eeec
push 0xffffffffffffffff
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.004610c9
add esp, 0x20
cmp dword [esi + 0x54c], ebx
je 0x430bc7
lea eax, [ebp - 0xd8]
push eax
push 0x1268
lea eax, [ebp - 0x114]
push eax
call fcn.0044be36
mov dword [ebp - 4], ebx
cmp dword [eax + 0x18], 8
jb 0x430aba
mov eax, dword [eax + 4]
jmp 0x430abd
add eax, 4
push eax
lea ecx, [ebp - 0xf8]
call fcn.004610c9
mov byte [ebp - 4], 1
mov esi, dword [esi + 0x54c]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
push 0x10
lea edx, [ebp - 0xf8]
push edx
call dword [eax + 0xc]
mov byte [ebp - 4], 0
push ebx
push 1
lea ecx, [ebp - 0xf8]
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x114]
call fcn.004610c9
jmp 0x430bc7
push edx
lea ecx, [ebp - 0xdc]
call fcn.004610c9
mov dword [ebp - 4], ebx
mov edi, eax
call fcn.004610c9
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0xdc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x430bb2
xor edi, edi
cmp dword [esi + 0x54c], edi
je 0x430bc7
push 0x12c9
lea eax, [ebp - 0x114]
push eax
call fcn.0044bdfb
mov dword [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x430b6c
mov eax, dword [eax + 4]
jmp 0x430b6f
add eax, 4
push eax
lea ecx, [ebp - 0xf8]
call fcn.004610c9
mov byte [ebp - 4], 4
mov esi, dword [esi + 0x54c]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
push 0x10
lea edx, [ebp - 0xf8]
push edx
call dword [eax + 0xc]
mov byte [ebp - 4], 3
push edi
push 1
lea ecx, [ebp - 0xf8]
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
push edi
jmp 0x430afb
movzx eax, word [ebp + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov edi, esi
call fcn.0043086d
xor eax, eax
call fcn.0045f490
ret 4
Function at 0x430d35
Capabilities:
Terminate thread

Disassembly:
push 0
mov eax, 0x46f373
call fcn.0045f38b
mov esi, dword [ebp + 8]
mov dword [esi], 0x40ef58
mov dword [ebp - 4], 6
mov eax, dword [esi + 0x514]
test eax, eax
je 0x430d8c
push 0x1388
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x430d79
push 0
push dword [esi + 0x514]
call dword [sym.imp.kernel32.dll_TerminateThread]
push dword [esi + 0x514]
call dword [sym.imp.kernel32.dll_CloseHandle]
and dword [esi + 0x514], 0
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [esi + 0x528]
call fcn.004610c9
mov byte [ebp - 4], 4
push dword [esi + 0x510]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 3
lea eax, [esi + 0xc8]
push eax
call fcn.00430632
mov byte [ebp - 4], 2
lea eax, [esi + 0xb0]
push eax
call fcn.00430632
mov byte [ebp - 4], 1
lea eax, [esi + 0x98]
push eax
call fcn.00430632
mov byte [ebp - 4], 0
lea eax, [esi + 0x20]
push eax
call fcn.0042ed5b
or dword [ebp - 4], 0xffffffff
push esi
call fcn.00430d10
call fcn.0045f477
ret 4

Function at 0x4320bd
Capabilities:
Create thread

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetCapture]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [esi + 0x518]
push eax
push 0
push esi
push 0x4320ff
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esi + 0x514], eax
ret
Function at 0x4370fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x46d0c7
call fcn.0045f439
mov eax, dword [ebp + 8]
mov esi, edx
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, ebx
jne 0x437156
call fcn.00429728
mov esi, eax
jmp 0x437276
push edi
push esi
push eax
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x43716f
call fcn.00429728
jmp 0x437268
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x437165
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4371cf
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4371be
lea eax, [ebp - 0x418]
call fcn.00435b29
mov eax, 0x8007000e
or dword [ebp - 4], 0xffffffff
call fcn.0045f4a4
ret 0xc
mov byte [ebp - 4], 2
push 2
call fcn.004610c9
cmp eax, 0x400
jbe 0x4371f0
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004610c9
jmp 0x4371fc
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x43721a
cmp dword [ebp - 0x418], ebx
jne 0x437229
mov esi, 0x8007000e
jmp 0x43726a
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x437165
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.004610c9
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x437292
lea eax, [ebp - 0x418]
call fcn.00435b29
mov eax, esi
jmp 0x4371c3
Function at 0x437dba
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x46a90f
call fcn.0045f38b
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x14], ebx
jae 0x437ddd
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
push esi
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x437e18
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.004610c9
xor al, al
call fcn.0045f477
ret 0x38
cmp dword [ebp + 0x3c], 8
push 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], ebx
jae 0x437e30
lea eax, [ebp + 0x28]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
test eax, eax
je 0x437e77
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xd], bl
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.004610c9
mov al, byte [ebp - 0xd]
jmp 0x437e10
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
mov byte [ebp - 0xd], 1
jmp 0x437e57