joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46dfeb
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4976a0]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x4976a0]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x108]
mov ebx, ecx
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
call fcn.0042c5a3
pop ecx
and dword [esp + 0x1a0], 0
push edi
lea eax, [esp + 0x128]
call fcn.0042c657
pop ecx
xor edx, edx
inc edx
mov dword [esp + 0x1a0], edx
cmp dword [esp + 0x118], 0
je 0x436009
push edx
lea eax, [esp + 0x10c]
push eax
lea edi, [esp + 0x148]
call fcn.004350c0
push esi
lea ecx, [esp + 0x128]
push ecx
mov ecx, eax
mov byte [esp + 0x1a8], 2
call fcn.00435f40
mov esi, edi
mov byte [esp + 0x1a0], 1
call fcn.00435144
jmp 0x436196
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x43601a
mov eax, dword [esi]
mov dword [esp + 0x10], eax
jmp 0x43601e
mov dword [esp + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x436028
mov esi, dword [edi]
jmp 0x43602a
mov esi, edi
mov eax, dword [ebx]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc ecx
push ecx
push dword [esp + 0x14]
push edx
push 0
push esi
push eax
call ebx
mov dword [esp + 0x10], eax
test eax, eax
je 0x436119
push str.set_string_value
lea ecx, [esp + 0xf0]
call fcn.00402450
and dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0xf
mov byte [esp + 0xd0], 0
push edi
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x148]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1b0], 4
call fcn.00436727
mov edi, eax
lea esi, [esp + 0x34]
mov byte [esp + 0x1a0], 5
call fcn.0042670f
push str.System_error
push dword [esp + 0x14]
mov eax, esi
push eax
mov ecx, ebx
lea edi, [esp + 0x34]
mov byte [esp + 0x1ac], 6
call fcn.00437531
lea ecx, [esp + 0x168]
mov byte [esp + 0x1a0], 7
push ecx
lea esi, [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x20], str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_windows_common_Registry.cpp
mov dword [esp + 0x24], str.Registry::setString
mov dword [esp + 0x28], 0x190
call fcn.0041b855
lea eax, [esp + 0x16c]
mov dword [esp], 0x487838
push eax
call fcn.00452164
cmp dword [0x49c100], 0
jg 0x436196
mov eax, dword [esp + 0x14]
mov ecx, edi
lea esi, [esp + 0xd0]
call fcn.0043537c
xor esi, esi
push esi
push dword [esp + 0x1c]
mov byte [esp + 0x1a8], 8
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.00436935
add esp, 0x10
push str.Registry::setString
push 0x193
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_windows_common_Registry.cpp
push esi
mov edx, eax
mov ecx, 0x49c100
mov byte [esp + 0x1b0], 9
call fcn.00421620
push esi
push 1
lea ecx, [esp + 0xf4]
call fcn.0040320c
push esi
push 1
lea ecx, [esp + 0xd8]
call fcn.0040320c
lea esi, [esp + 0x108]
call fcn.0040e8e2
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.0044a659
mov esp, ebp
pop ebp
ret 8
Function at 0x436585
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x4976a0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esp + 0xc4]
push eax
mov edi, esi
mov ebx, ecx
call fcn.0042c5a3
pop ecx
push esi
lea eax, [esp + 0xe4]
call fcn.0042c657
xor edi, edi
pop ecx
cmp dword [esp + 0xd4], edi
je 0x436691
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
push edi
or ecx, 0x2001f
push ecx
lea ecx, [esp + 0xcc]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00434ec9
add esp, 0x14
cmp dword [esp + 0x18], edi
je 0x43663c
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x14], 0
je 0x436617
push dword [esp + 0x10]
mov byte [esp + 0x18], 0
call fcn.0043b105
pop ecx
lea esi, [esp + 0xc4]
call fcn.0040e8e2
mov ecx, dword [esp + 0x124]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044a659
mov esp, ebp
pop ebp
ret 8
push 0x49ad62
lea eax, [esp + 0xe4]
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x20]
mov eax, esp
mov dword [eax], ecx
mov cl, byte [esp + 0x24]
mov byte [eax + 4], cl
mov dword [esp + 0x30], esp
push ebx
lea ecx, [esp + 0xd8]
lea edi, [esp + 0x110]
mov byte [esp + 0x28], 0
call fcn.0043503d
mov ecx, eax
call fcn.00436585
lea esi, [esp + 0xfc]
mov edi, eax
call fcn.00435144
jmp 0x436601
cmp dword [esi + 0x14], 0x10
jb 0x43669b
mov ecx, dword [esi]
jmp 0x43669d
mov ecx, esi
mov eax, dword [ebx]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x20], eax
cmp eax, edi
jne 0x43671e
cmp dword [0x49c100], edi
jg 0x43671e
lea eax, [esp + 0x28]
push eax
call fcn.00402774
lea eax, [esp + 0x28]
push str.Deleted__
push eax
call fcn.0040560b
sub esp, 0x14
mov ecx, esi
mov esi, esp
mov eax, ebx
mov dword [esp + 0x40], esp
call fcn.0043537c
lea esi, [esp + 0x44]
call fcn.004042ae
mov esi, eax
push str.__value
push esi
call fcn.0040560b
pop ecx
pop ecx
push esi
push 0x1d2
push edi
mov ebx, str.Registry::deleteValue
mov edi, str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_windows_common_Registry.cpp
mov esi, 0x49c100
call fcn.004016a9
lea eax, [esp + 0x28]
call fcn.004015cb
mov edi, dword [esp + 0x20]
jmp 0x436617
Function at 0x43769c
Capabilities:
Create thread

Disassembly:
push 0x78
mov eax, 0x46e96d
call fcn.004525fd
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x5c], eax
cmp esi, ebx
jne 0x4376be
or dword [eax], 0xffffffff
jmp 0x4377a4
mov dword [ebp - 0x60], ebx
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 4], ebx
call fcn.0043726d
mov byte [ebp - 4], 1
or dword [ebp - 0x40], 0xffffffff
lea eax, [ebp - 0x58]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0x437681
push ebx
push ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
call fcn.004507c3
mov edi, eax
add esp, 0x18
cmp edi, ebx
jne 0x43773e
lea esi, [ebp - 0x78]
call fcn.00436f7a
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
push ecx
lea esi, [ebp - 0x6c]
mov ecx, eax
mov dword [ebp - 0x6c], str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_ipc_windows_ThreadImpl.cpp
mov dword [ebp - 0x68], str.ipc::Thread::start
mov dword [ebp - 0x64], 0x70
call fcn.0043733a
lea eax, [ebp - 0x3c]
mov dword [esp], 0x487cf8
push eax
call fcn.00452164
lea eax, [ebp - 0x58]
lea esi, [ebp - 0x84]
call fcn.00436d5b
lea eax, [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
push 1
push dword [ebp - 0x50]
mov dword [ebp - 0x44], edi
call fcn.00437102
jmp 0x437777
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 8]
call fcn.00436f9a
cmp dword [ebp - 0x44], ebx
jne 0x437765
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00436da5
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x5c]
mov dword [esi], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x60], ebx
mov byte [ebp - 4], bl
call fcn.004372e1
mov eax, esi
call fcn.00452680
ret
Function at 0x439424
Capabilities:
Check mutex on windows

Disassembly:
push 0xa8
mov eax, 0x46ce05
call fcn.00452594
push str.Global_MSIExecute
xor esi, esi
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 1
mov dword [ebp - 4], esi
cmp eax, esi
je 0x4394f6
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], esi
je 0x4394d6
cmp dword [0x49c100], 1
jg 0x4394d6
lea eax, [ebp - 0xb4]
push eax
call fcn.00402774
lea eax, [ebp - 0xb4]
push str.finish_waiting_for_mutex:
push eax
mov byte [ebp - 4], 1
call fcn.0040560b
pop ecx
pop ecx
push dword [ebp - 0x14]
lea eax, [ebp - 0xb4]
push eax
call fcn.004043b1
lea eax, [ebp - 0xb4]
push eax
push 0x1c8
push 1
mov ebx, str.msi::waitForInstallationCompletion
mov edi, str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_windows_common_MsiUtils.cpp
mov esi, 0x49c100
call fcn.004016a9
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0
call fcn.004015cb
cmp dword [ebp - 0x14], 0x102
jne 0x4394f6
xor bl, bl
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.0043af52
pop ecx
mov al, bl
call fcn.0045266c
ret
mov bl, 1
jmp 0x4394e1
Function at 0x4408b7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46b996
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4976a0]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x4976a0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
cmp byte [ecx + 0x38], bl
je 0x440917
push esi
mov ebx, ecx
call fcn.004405bc
mov eax, esi
jmp 0x440b00
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x14]
mov dword [esp + 0xc0], ebx
call fcn.004406f3
test al, al
jne 0x4409e4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea ebx, [esp + 0x58]
mov byte [esp + 0xc0], 1
call fcn.004433f7
push 0xc8
lea edx, [esp + 0x28]
mov ecx, eax
mov byte [esp + 0xc4], 2
call fcn.004406f3
movzx eax, al
push eax
call fcn.00440dd2
pop ecx
pop ecx
push 0
push 1
mov ecx, ebx
mov byte [esp + 0xc8], 1
call fcn.0040320c
push dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push esi
push ebx
push dword [esp + 0x34]
lea ecx, [esp + 0x34]
call fcn.00413208
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
lea esi, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc0], 0
call fcn.00412bd9
xor ebx, ebx
mov edi, dword [esp + 0x14]
mov esi, edi
cmp edi, dword [esp + 0x18]
je 0x440a4a
push 0x47f2cc
call fcn.00413127
pop ecx
test al, al
jne 0x440a08
add esi, 0x1c
cmp esi, dword [esp + 0x18]
jne 0x4409f0
cmp dword [esp + 0x18], esi
je 0x440a46
cmp edi, esi
je 0x440a2b
lea eax, [esi + 0x1c]
push eax
add esi, 0xffffffe4
push esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00412a68
jmp 0x4409e4
push 0x137
lea esi, [esp + 0x28]
call fcn.0041154e
push 0x4877a4
mov eax, esi
push eax
call fcn.00452164
cmp edi, dword [esp + 0x18]
sete al
movzx eax, al
push eax
call fcn.00440daa
pop ecx
push dword [esp + 0x14]
lea esi, [esp + 0x40]
add edi, 0x1c
call fcn.0040242f
mov byte [esp + 0xc0], 4
jmp 0x440aaf
lea eax, [esp + 0x58]
push 0x47c2ec
push eax
call fcn.00408a34
pop ecx
pop ecx
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x44]
mov byte [esp + 0xc8], 5
call fcn.00405576
push ebx
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0xc8], 4
call fcn.0040320c
add edi, 0x1c
cmp edi, dword [esp + 0x18]
jne 0x440a71
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00440573
push dword [esp + 0x38]
mov byte [esp + 0xc4], 6
lea ebx, [esp + 0x78]
mov byte [esp + 0xb0], 1
call fcn.004405bc
call fcn.0043ccca
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.0040320c
lea esi, [esp + 0x14]
call fcn.00412bd9
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0044a659
mov esp, ebp
pop ebp
ret
Function at 0x440fee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x468517
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4976a0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4976a0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push ecx
lea esi, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
call fcn.0040242f
mov byte [esp + 0x3c], bl
mov dword [esp + 0x70], ebx
jmp 0x44109b
lea edx, [esp + 0x20]
add edi, 0xfffffffc
mov ecx, dword [edi]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x20], edi
call dword [eax + 4]
mov esi, eax
lea edi, [esp + 0x20]
mov byte [esp + 0x70], 1
call fcn.00403055
mov al, byte [esi + 0x1c]
push ebx
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x44], al
mov byte [esp + 0x78], bl
call fcn.0040320c
cmp byte [esp + 0x3c], bl
jne 0x4410a1
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jne 0x441052
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
call fcn.0040242f
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.0040320c
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0044a659
mov esp, ebp
pop ebp
ret 8
Function at 0x443f88
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ab27
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4976a0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.00440b7e
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [esp + 0x10], cl
mov dword [esp + 0x1c], edi
mov byte [eax + 4], bl
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], cl
mov dword [esp + 0x50], ebx
cmp byte [esp + 0x18], bl
je 0x443ff3
push dword [esp + 0x14]
mov byte [esp + 0x1c], bl
call fcn.004493c4
pop ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov esi, 0x100001
lea eax, [esp + 0x34]
mov byte [esp + 0x50], 1
call fcn.0042a5ca
push edi
mov edi, dword [esp + 0x38]
dec esi
push esi
push 1
push edi
call fcn.00451976
add esp, 0x10
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x444047
push 0xc8
lea esi, [esp + 0x20]
call fcn.0041154e
push 0x4877a4
mov eax, esi
push eax
call fcn.00452164
push dword [esp + 0x1c]
call fcn.00451704
pop ecx
test eax, eax
je 0x44406c
push 0x133
lea esi, [esp + 0x20]
call fcn.0041154e
push 0x4877a4
mov eax, esi
jmp 0x444041
push dword [esp + 0x1c]
call fcn.004516dc
pop ecx
test eax, eax
jne 0x444091
push 0x13b
lea esi, [esp + 0x20]
call fcn.0041154e
push 0x4877a4
mov eax, esi
jmp 0x444041
mov esi, dword [esp + 0x14]
mov ecx, esi
mov eax, edi
call fcn.00443f54
lea eax, [edi + esi]
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp edi, eax
je 0x4440bf
sub eax, edi
push eax
push edi
mov ecx, esi
call fcn.004036b9
cmp edi, ebx
je 0x4440ca
push edi
call fcn.0044a64e
pop ecx
cmp byte [esp + 0x10], bl
je 0x4440da
push dword [esp + 0x1c]
call fcn.004493c4
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445616
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, eax
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jl 0x445696
jg 0x445642
cmp esi, ecx
jbe 0x445696
cmp dword [ebp + 0x14], ecx
jg 0x445642
jl 0x44563e
cmp esi, 0x7fffffff
jae 0x445642
mov eax, esi
jmp 0x445647
mov eax, SysReAllocString
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], ecx
je 0x445687
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x445671
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x445691
jmp 0x445687
mov eax, dword [ebp - 4]
test eax, eax
jle 0x445682
add ebx, eax
cdq
sub esi, eax
sbb dword [ebp + 0x14], edx
jmp 0x445622
cmp eax, 0xffffffff
jne 0x445691
call fcn.004508a5
cmp dword [eax], 4
je 0x445622
or eax, 0xffffffff
jmp 0x445698
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x44a659
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4976a0]
jne 0x44a663
repz ret
jmp fcn.004549b5

Function at 0x45d4b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4976a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004560e8
and dword [ebp - 0x14], 0
cmp dword [0x49bd54], 0
mov dword [ebp - 0x18], eax
jne 0x45d566
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45d60e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45d60e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x49bd54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49bd58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49bd5c], eax
call edi
push eax
call esi
mov dword [0x49bd64], eax
test eax, eax
je 0x45d566
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49bd60], eax
mov eax, dword [0x49bd60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45d5bf
cmp dword [0x49bd64], ecx
je 0x45d5bf
push eax
call esi
push dword [0x49bd64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45d5bf
test ebx, ebx
je 0x45d5bf
call edi
test eax, eax
je 0x45d5b6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45d5b6
test byte [ebp - 8], 1
jne 0x45d5bf
or dword [ebp + 0x10], 0x200000
jmp 0x45d5f2
mov eax, dword [0x49bd58]
cmp eax, dword [ebp - 0x18]
je 0x45d5f2
push eax
call esi
test eax, eax
je 0x45d5f2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45d5f2
mov eax, dword [0x49bd5c]
cmp eax, dword [ebp - 0x18]
je 0x45d5f2
push eax
call esi
test eax, eax
je 0x45d5f2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49bd54]
call esi
test eax, eax
je 0x45d60e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45d610
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a659
leave
ret
Function at 0x401f08
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
add esp, 0xfffffff0
push ebp
push esi
push edi
mov dword [ebx - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebx - 4], eax
mov eax, dword [ebx - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebx - 8], ecx
push 0x4013ec73
push 0xabc94706
push 0x40501c5b
push 0x9628cbd1
call fcn.00408c86
mov edx, dword [ebx - 8]
mov eax, dword [edx + 0xc]
add esp, 0x10
mov dword [ebx - 0xc], eax
jmp 0x401f59
mov ecx, dword [ebx - 0xc]
mov edx, dword [ecx]
mov dword [ebx - 0xc], edx
mov esi, dword [ebx - 0xc]
cmp dword [esi + 0x18], 0
je 0x401f80
cmp dword [ebx - 0x10], 0
jne 0x401f80
mov ecx, dword [ebx + 8]
push ecx
mov edx, dword [ebx - 0xc]
mov eax, dword [edx + 0x18]
push eax
call fcn.00401f95
mov dword [ebx - 0x10], eax
sub esp, 0xfffffff8
jmp 0x401f51
mov eax, dword [ebx - 0x10]
pop edi
pop esi
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x401f95
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 0x34], 0
push 0x419d4c33
push 0x40000000
call fcn.00402284
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
sub esp, 0xfffffff8
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401f8a
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
push 0x41a4af19
push 0x80000000
push 0x40280bc6
push 0xa7ef9db2
call fcn.00402519
add esp, 0x10
cmp dword [ebp - 0x2c], 0
jne 0x40200a
xor eax, eax
jmp 0x4020c5
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401f8a
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
jbe 0x4020c2
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4 - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401f8a
mov dword [ebp - 4], eax
sub esp, 0xfffffff8
push 0x37
mov eax, dword [ebp - 4]
push eax
push 0x14
call fcn.004020c9
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jne 0x4020ad
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, dword [ebp - 0x24]
mov dx, word [ecx + eax*2 - 2]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + edx*4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401f8a
sub esp, 0xfffffff8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
jmp 0x4020c5
mov ecx, dword [ebp - 0x14]
add ecx, 0xffffffff
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x4020c2
cmp dword [ebp - 0x34], 0
je 0x402050
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret
Function at 0x402c9b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4090b0
push 0x404744
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov ecx, eax
mov dword [0x4233f4], edx
and ecx, 0xff
mov dword [0x4233f0], ecx
shl ecx, 8
add ecx, edx
shr eax, 0x10
xor edi, edi
mov dword [0x4233ec], ecx
mov dword [0x4233e8], eax
push edi
call fcn.0040460d
test eax, eax
pop ecx
jne 0x402d07
push 0x1c
call fcn.00402db6
pop ecx
mov dword [ebp - 4], edi
call fcn.00404462
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x423954], eax
call fcn.00404330
mov dword [0x4233b0], eax
call fcn.004040e3
call fcn.0040402a
call fcn.00403d4c
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x30], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403fd2
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x402d54
movzx eax, word [ebp - 0x2c]
jmp 0x402d57
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00403d79
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.00403e4e
pop ecx
pop ecx
ret