joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407314
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407342
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x407349
cmp ebx, dword [eax + 4]
jae 0x407349
xor eax, eax
jmp 0x407539
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40735a
xor eax, eax
inc eax
jmp 0x407538
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407370
cmp ecx, edx
jae 0x4074b5
cmp dword [eax + 4], 0
je 0x407379
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407361
cmp dword [ebp + 8], 0
je 0x40739b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4074b5
cmp eax, esi
jae 0x4074b5
mov eax, dword [0x40ba80]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4073c0
cmp dword [esi*4 + 0x40ba88], edi
je 0x4074b9
inc esi
cmp esi, eax
jl 0x4073ae
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407535
cmp dword [ebp - 8], 0x1000000
jne 0x407535
test byte [ebp - 0xc], 0xcc
je 0x40743e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407535
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407535
cmp word [eax + 0x18], 0x10b
jne 0x407535
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407535
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40743e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40743e
test byte [ecx + 0x27], 0x80
jne 0x4074b5
push 1
push 0x40bac8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407352
mov ecx, dword [0x40ba80]
test ecx, ecx
mov edx, ecx
jle 0x407472
lea eax, [ecx*4 + 0x40ba84]
cmp dword [eax], edi
je 0x407472
dec edx
sub eax, 4
test edx, edx
jg 0x407466
test edx, edx
jne 0x4074a3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40747f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407497
lea eax, [edx*4 + 0x40ba88]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407485
cmp ecx, 0x10
jge 0x4074a3
inc ecx
mov dword [0x40ba80], ecx
push 0
push 0x40bac8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407352
xor eax, eax
jmp 0x407538
test esi, esi
jle 0x407352
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40bac8
call ebx
test eax, eax
jne 0x407352
cmp dword [esi*4 + 0x40ba88], edi
je 0x40750f
mov eax, dword [0x40ba80]
lea esi, [eax - 1]
test esi, esi
jl 0x4074fd
cmp dword [esi*4 + 0x40ba88], edi
je 0x4074f9
dec esi
jns 0x4074ed
test esi, esi
jge 0x40750d
cmp eax, 0x10
jge 0x407508
inc eax
mov dword [0x40ba80], eax
lea esi, [eax - 1]
jmp 0x40750f
je 0x407527
xor ecx, ecx
test esi, esi
jl 0x407527
lea eax, [ecx*4 + 0x40ba88]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407515
push 0
push 0x40bac8
call ebx
jmp 0x407352
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407831
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405cb0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4078cc
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40b900]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4078cc
cmp eax, 1
je 0x4078ed
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4078cc
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407899
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4078c8
xor eax, eax
inc eax
jmp 0x40790c
cmp edi, eax
jae 0x4078d0
xor eax, eax
jmp 0x40790c
cmp eax, esi
jae 0x4078d7
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40b900]
jmp 0x4078f0
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4079a0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x40b0e0]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x40cd64]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x407b42
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40cd80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x407b42
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x407a16
xor eax, eax
jmp 0x407b56
test al, 0x20
je 0x407a29
push 2
push 0
push 0
push ecx
call fcn.004080e1
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407abe
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x407b1f
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x407a83
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407a74
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x407a56
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407ae3
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x407aec
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x407a4b
jmp 0x407aec
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407ae3
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x407aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x407b3d
cmp dword [ebp - 0x68], eax
je 0x407b1c
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x407b11
mov dword [0x40b8f4], 9
mov dword [0x40b8f8], eax
jmp 0x407b53
push dword [ebp - 0x68]
call fcn.00407fcc
pop ecx
jmp 0x407b53
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407b31
cmp byte [edi], 0x1a
je 0x407a0f
mov dword [0x40b8f4], 0x1c
jmp 0x407b4c
sub eax, dword [ebp - 0x7c]
jmp 0x407b56
mov dword [0x40b8f4], 9
and dword [0x40b8f8], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004025ce
add ebp, 0x3a4
leave
ret
Function at 0x401138
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
call fcn.00401000
push 0x40c
xor ebx, ebx
mov dword [ebp - 0x464], 0x22
lea eax, [ebp - 0x460]
push ebx
push eax
call fcn.004013c0
add esp, 0xc
lea eax, [ebp - 0x462]
mov esi, 0x207
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40122a
cmp eax, esi
jae 0x40122a
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x462]
push eax
call esi
lea eax, [ebp - 0x462]
push eax
call esi
push str.GoogleUpdate.exe
lea eax, [ebp - 0x462]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40122a
push str.___ondemand
push 0x208
lea eax, [ebp - 0x464]
push eax
call fcn.00401047
test eax, eax
js 0x40122f
push edi
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
push ebx
push eax
call fcn.004013c0
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x464]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x40122a
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
jmp 0x40122f
call fcn.0040102c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4047c5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411cf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00402654
mov dword [ebp - 0x14], eax
cmp dword [0x412c10], esi
jne 0x4048b8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x404845
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x404998
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x404998
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404998
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x412c10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x412c14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x412c18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x412c20], eax
test eax, eax
je 0x4048b5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x412c1c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4048dd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4048d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4048f2
push 4
pop eax
jmp 0x40499a
cmp dword [ebp - 0x14], esi
je 0x4048f2
push dword [0x412c10]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4048d7
mov eax, dword [0x412c1c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x404950
cmp dword [0x412c20], edi
je 0x404950
push eax
call ebx
push dword [0x412c20]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x404950
test eax, eax
je 0x404950
call ecx
test eax, eax
je 0x404945
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x404945
test byte [ebp - 8], 1
jne 0x404950
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x404980
mov eax, dword [0x412c14]
cmp eax, edi
je 0x40497d
push eax
call ebx
test eax, eax
je 0x40497d
call eax
mov esi, eax
test esi, esi
je 0x40497d
mov eax, dword [0x412c18]
cmp eax, edi
je 0x40497d
push eax
call ebx
test eax, eax
je 0x40497d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x412c10]
call ebx
test eax, eax
je 0x404998
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40499a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004049ab
mov esp, ebp
pop ebp
ret
Function at 0x4025d2
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
xor ebx, ebx
cmp byte [0x422b64], bl
mov dword [ebp - 8], ecx
jne 0x4027c2
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
mov byte [ebp - 0x230], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
mov byte [0x422b64], 1
push eax
push 1
push ebx
push 0x421cf5
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402654
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
push ebx
push ebx
push 0x42018c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
lea ecx, [eax + 0xc4]
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 8], ecx
call sub.MFC42.DLL_CString::operator_2
mov ecx, 0x423868
call fcn.00419e84
test al, al
je 0x4026b8
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x12c]
push eax
push ebx
push ebx
push 0x801c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4026b8
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x12c]
push eax
call sub.MFC42.DLL_CString::operator_2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov ecx, 0x409
cmp eax, ecx
je 0x4026da
cmp eax, 0x804
je 0x4026da
cmp eax, 0x404
je 0x4026da
mov eax, ecx
push eax
call fcn.00418926
pop ecx
lea eax, [ebp - 1]
push eax
push 0x421efd
lea ecx, [ebp - 0x24]
call fcn.004020e4
lea eax, [ebp - 0x24]
push eax
call fcn.00418933
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00416a21
lea eax, [ebp - 1]
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004020e4
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x40272e
lea eax, [ebp - 0x18]
push eax
call fcn.004188e0
pop ecx
jmp 0x4027b3
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x12c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
jle 0x40277c
cmp byte [ebp + eax - 0x12c], 0x5c
je 0x402775
dec eax
jmp 0x402764
mov byte [ebp + eax - 0x12c], bl
lea eax, [ebp - 0x12c]
push 0x420184
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 1]
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004020e4
lea eax, [ebp - 0x24]
push eax
call fcn.004188e0
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00416a21
cmp dword [ebp - 0x18], ebx
pop edi
je 0x4027c2
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
pop ecx
pop ebx
leave
ret
Function at 0x4029b7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 2
push ebx
push 0x4201fc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a0b
lea eax, [ebp - 8]
push 4
push eax
push 4
push ebx
push 0x4201ec
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4029fe
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x402a0d
xor al, al
pop ebx
leave
ret

Function at 0x402af8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x4202b4
push SysReAllocString
mov dword [ebp - 0xc], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402bea
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x4202ac
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x402b8c
lea eax, [ebp - 0x10]
push 4
push eax
push 4
push esi
push 0x4202a4
push dword [ebp - 4]
mov dword [ebp - 0x10], 2
call edi
lea eax, [ebp - 0x10]
push 4
push eax
push 4
push esi
push 0x42029c
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x420298
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x402be1
lea eax, [ebp - 0x10]
push 4
push eax
push 4
push esi
push 0x4202a4
push dword [ebp - 4]
mov dword [ebp - 0x10], 2
call edi
lea eax, [ebp - 0x10]
push 4
push eax
push 4
push esi
push 0x42029c
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x420240
push SysReAllocString
call ebx
test eax, eax
jne 0x402c68
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x420298
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x402c5f
push 4
lea eax, [ebp - 0x10]
pop ebx
mov dword [ebp - 0x10], 2
push ebx
push eax
push ebx
push esi
push 0x4202a4
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push esi
push 0x42029c
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f6b
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0xc]
call fcn.00401502
mov edi, 0x42198e
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.0040372c
mov ebx, 0x42047c
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, ebx
lea ecx, [ebp - 0xd]
push ecx
push eax
push ebx
lea ecx, [ebp - 0xc]
call fcn.00403823
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ebx, ebx
mov dword [esi + 0xd0], eax
cmp eax, ebx
jne 0x402fdc
push ebx
push 0x10
push 0x420468
call sub.MFC42.DLL_AfxMessageBox
jmp 0x4030c1
lea ecx, [ebp - 0xd8]
call fcn.00419c9e
lea ecx, [ebp - 0xd8]
call fcn.00419e84
test al, al
je 0x403016
push dword [esi + 0xd0]
mov ecx, esi
call fcn.0040318a
push 0x40c
mov ecx, esi
call fcn.0040318a
mov ecx, esi
call fcn.004029b7
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.0040372c
mov edi, 0x42044c
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
lea ecx, [ebp - 0xd]
push ecx
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.00403823
push dword [ebp - 0xc]
mov ecx, 0x423938
push ebx
call fcn.0041a565
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xd8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40309a
cmp byte [esi + 0xd4], bl
jne 0x4030a2
push dword [esi + 0xd8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 2
push dword [esi + 0xd0]
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x403143
cmp byte [esi + 0xd4], bl
je 0x4030ce
push ebx
push 1
push dword [esi + 0xd0]
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0xd8]
call fcn.00419d62
lea ecx, [ebp - 0xc]
call fcn.00416a21
jmp 0x403160
push ebx
call sub.MFC42.DLL_AfxEnableControlContainer
pop ecx
mov ecx, esi
call sub.MFC42.DLL_CWinApp::Enable3dControls
push 0x5b4
call sub.MFC42.DLL_operatornew
cmp eax, ebx
pop ecx
je 0x4030fd
push ebx
mov ecx, eax
push dword [esi + 0xd0]
call fcn.00403856
mov edi, eax
jmp 0x4030ff
xor edi, edi
cmp edi, ebx
je 0x403143
push ebx
push 0x66
mov ecx, edi
mov dword [esi + 0x20], edi
call sub.MFC42.DLL_CDialog::Create
test eax, eax
je 0x403143
cmp byte [esi + 0xcc], bl
je 0x403130
push ebx
push 3
push dword [esi + 0xd0]
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x5c]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov dword [esi + 0x20], ebx
lea ecx, [ebp - 0xd8]
call fcn.00419d62
mov eax, dword [ebp - 4]
lea ecx, [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push dword [ebp - 0xc]
call fcn.0040149b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x407a4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
cmp byte [ebp + 8], 0
mov dword [ebp - 4], ecx
je 0x407a68
cmp byte [ebp + 8], 1
je 0x407a68
xor eax, eax
jmp 0x407b58
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [eax + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], esi
push eax
mov ecx, dword [eax + 0x34c]
mov dword [ebp - 0x18], ecx
mov cl, byte [ebp + 8]
mov byte [ebp - 0x10], cl
lea ecx, [ebp - 0x78]
call fcn.0041642b
lea eax, [ebp - 0x78]
mov dword [0x422fc8], esi
mov dword [ebp - 0xc], eax
call ebx
cmp byte [ebp + 8], 0
mov dword [0x422fcc], eax
mov eax, dword [ebp + 0xc]
jne 0x407ae3
mov dword [0x422fa4], eax
mov eax, dword [ebp + 0x10]
mov dword [0x422fa0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x422fa8], eax
mov eax, dword [ebp + 0x18]
mov dword [0x422fac], eax
jmp 0x407b00
mov dword [0x42356c], eax
mov eax, dword [ebp + 0x10]
mov dword [0x423568], eax
mov eax, dword [ebp + 0x14]
mov dword [0x423570], eax
mov eax, dword [ebp + 0x18]
mov dword [0x423574], eax
lea ecx, [ebp - 8]
xor eax, eax
push ecx
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0x40760e
push eax
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x407b31
push 2
pop esi
jmp 0x407b4b
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CDialog::DoModal
cmp byte [ebp + 8], 0
mov esi, dword [0x422f9c]
je 0x407b4b
mov esi, dword [0x423564]
lea ecx, [ebp - 0x78]
call fcn.0041a950
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x407c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 1
push ebx
push 0x4200c4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ca4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x4200bc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407c9b
xor al, al
jmp 0x407cb7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
mov al, 1
pop ecx
pop edi
pop ebx
leave
ret