joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba600
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x10], eax
push str.TImage2211
push str.TImage2211
call fcn.00417e10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4ba64b
lea edx, [ebp - 0x14]
push edx
mov eax, dword [0x4c8a9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
jmp fcn.0073733e

Function at 0x4bbb51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c5350
cmp edx, dword [eax]
je 0x4bbb73
add eax, 8
inc ecx
cmp eax, 0x4c53e0
jl 0x4bbb64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c5350]
jne 0x4bbca1
mov eax, dword [0x4c9cdc]
cmp eax, 1
je 0x4bbc7b
test eax, eax
jne 0x4bbba4
cmp dword [0x4c527c], 1
je 0x4bbc7b
cmp edx, 0xfc
je 0x4bbca1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbbdb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bc530
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc9c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbc1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc9c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0ca4
push edi
call fcn.004be890
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bc530
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc540
lea eax, [ebp - 0xa0]
push 0x4c0c84
push eax
call fcn.004bc540
push dword [esi + 0x4c5354]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc540
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004be804
add esp, 0x2c
pop edi
jmp 0x4bbca1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c5354]
push 0
push eax
push dword [esi]
call fcn.004bc9c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4029d0
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 0x4fe0]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0x4fd8]
mov ebx, dword [esi + 0x4fdc]
shr ecx, 0x1c
mov eax, edi
and eax, 0xf
shl ebx, 4
add ecx, ebx
mov edx, edi
shr edx, 4
shl eax, 0x1c
cmp edi, ecx
sbb ecx, ecx
and ecx, 0x10000000
push ecx
push eax
push edx
mov edx, dword [esi + 0x28]
push 4
push edx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x4fe0], eax
je 0x402a32
mov dword [esi + 0x18], edi
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x44f424]
push 0x441fd0
push 0x441fc4
push edi
mov esi, eax
call fcn.0042435f
mov eax, dword [edi]
push esi
push esi
push str.LastError
push str._s_d__x__n
push eax
call fcn.0042451a
mov ecx, dword [edi]
push ecx
call fcn.0042480a
mov edx, dword [0x450440]
mov eax, dword [0x44f3ac]
add esp, 0x24
push 0x100
shl edx, 9
add edx, 0x44f440
push edx
push 0xdf
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x450440]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x402aaa
dec ecx
or ecx, 0xfffffff8
inc ecx
shl eax, 9
add eax, 0x44f440
push eax
mov dword [0x450440], ecx
call fcn.00418070
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x40c9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e758
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x44aad4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x30]
call fcn.004182d0
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x14], eax
mov ebx, esi
mov dword [esi], vtable.TAG_Plot.0
mov dword [esi + 0x10cc078], ecx
mov dword [esi + 0x1097a10], eax
call fcn.0040ee30
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x41ada0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c
push esi
xor esi, esi
cmp word [0x450a50], si
push edi
mov edi, eax
jne 0x41adc4
push 0x450a50
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x41adda
push 0x5c
push 0x450a50
call fcn.00424a94
add esp, 8
cmp eax, esi
je 0x41adda
mov word [eax], si
mov eax, 0x450a50
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41ade2
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x41ae07
cmp word [0x450a54], 0x5c
jne 0x41ae07
mov word [0x450a54], si
cmp edi, esi
je 0x41ae1e
push edi
push 0x208
push 0x450a50
call fcn.0042472b
add esp, 0xc
mov eax, dword [esp + 0x64]
push eax
push 0x208
push 0x450a50
call fcn.004254ec
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], eax
add esp, 0xc
mov dword [esp + 8], 0x4c
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x450a50
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 0x88002c
mov word [esp + 0x40], si
mov word [esp + 0x42], si
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0x41ac70
mov dword [esp + 0x50], esi
mov ecx, str.OPEN
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41aedc
cmp dx, si
je 0x41aed8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41aedc
add eax, 4
add ecx, 4
cmp dx, si
jne 0x41aeb6
xor eax, eax
jmp 0x41aee1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x41aef2
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
jmp 0x41aef6
mov eax, dword [esp + 0x58]
mov edx, str.SAVE
mov ecx, ebx
lea ecx, [ecx]
mov di, word [ecx]
cmp di, word [edx]
jne 0x41af26
cmp di, si
je 0x41af22
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x41af26
add ecx, 4
add edx, 4
cmp di, si
jne 0x41af00
xor ecx, ecx
jmp 0x41af2b
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, esi
jne 0x41af3a
lea edx, [esp + 8]
push edx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
cmp eax, esi
jne 0x41af46
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret
mov ecx, str.SAVE
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41af76
cmp dx, si
je 0x41af72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41af76
add eax, 4
add ecx, 4
cmp dx, si
jne 0x41af50
xor eax, eax
jmp 0x41af7b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x41afcb
cmp word [esp + 0x42], si
mov edx, dword [esp + 0x14]
jne 0x41afcb
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + ecx - 1]
xor eax, eax
cmp ecx, esi
jbe 0x41afb5
jmp 0x41afa0
mov si, word [edx]
add edx, 2
test si, si
jne 0x41afa0
add eax, 1
movzx esi, ax
cmp esi, ecx
jb 0x41afa0
add edx, 2
push edx
push 0x208
push 0x450a50
call fcn.004254ec
add esp, 0xc
pop edi
mov eax, 0x450a50
pop esi
add esp, 0x4c
ret

Function at 0x423cab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44aad4]
jne 0x423cb5
repz ret
jmp fcn.004285ab
Function at 0x436fe6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042da1d
xor ebx, ebx
cmp dword [0x44f2f8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4370bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x437026
xor eax, eax
jmp 0x43717f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43701f
push eax
call fcn.0042d9ba
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f2f8], eax
call esi
push eax
call fcn.0042d9ba
mov dword [esp], 0x441f00
push edi
mov dword [0x44f2fc], eax
call esi
push eax
call fcn.0042d9ba
mov dword [0x44f300], eax
lea eax, [ebp - 8]
push eax
call fcn.00428321
test eax, eax
pop ecx
pop ecx
je 0x437089
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004291a1
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4370bb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042d9ba
cmp eax, ebx
pop ecx
mov dword [0x44f308], eax
je 0x4370bb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042d9ba
pop ecx
mov dword [0x44f304], eax
mov eax, dword [0x44f304]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x437134
cmp dword [0x44f308], esi
je 0x437134
push eax
call fcn.0042da26
pop ecx
call eax
cmp eax, ebx
je 0x437101
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44f308]
call fcn.0042da26
pop ecx
call eax
test eax, eax
je 0x437101
test byte [ebp - 0x18], 1
jne 0x437134
lea eax, [ebp - 0xc]
push eax
call fcn.00428358
test eax, eax
pop ecx
je 0x43711c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004291a1
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43712b
or dword [ebp + 0x10], 0x200000
jmp 0x437165
or dword [ebp + 0x10], 0x40000
jmp 0x437165
mov eax, dword [0x44f2fc]
cmp eax, esi
je 0x437165
push eax
call fcn.0042da26
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x437165
mov eax, dword [0x44f300]
cmp eax, esi
je 0x437165
push dword [ebp - 4]
push eax
call fcn.0042da26
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44f2f8]
call fcn.0042da26
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43ac5c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44aad4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043abf1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004263e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43acab
cmp dword [ebp - 0x1c], 5
jb 0x43acc3
jmp 0x43acbf
cmp dword [ebp - 0x10], 1
jne 0x43acc3
cmp dword [ebp - 0x1c], 4
ja 0x43acbf
jne 0x43acc3
cmp dword [ebp - 0x18], 0
jbe 0x43acc3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x441f94
call fcn.0043aac5
test eax, eax
jge 0x43ace4
mov byte [0x44f384], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00423cab
add ebp, 0x78
leave
ret
Function at 0xd01609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0xd01a90
call fcn.00d017b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0xd02370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0xd013c4
cmp eax, esi
jne 0xd013b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0xd013c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0xd0139e
xor esi, esi
inc esi
mov eax, dword [0xd0236c]
cmp eax, esi
jne 0xd013da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0xd01409
mov eax, dword [0xd0236c]
test eax, eax
jne 0xd01403
mov dword [0xd0236c], esi
push 0xd010b8
push 0xd010ac
call fcn.00d01300
pop ecx
pop ecx
test eax, eax
je 0xd01409
jmp 0xd0152d
mov dword [0xd02034], esi
mov eax, dword [0xd0236c]
cmp eax, esi
jne 0xd0142d
push 0xd010a8
push 0xd010a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0xd0236c], 2
cmp dword [ebp - 0x20], ebx
jne 0xd0143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0xd02374], ebx
je 0xd0145b
push 0xd02374
call fcn.00d01729
pop ecx
test eax, eax
je 0xd0145b
push ebx
push 2
push ebx
call dword [0xd02374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0xd0152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0xd014c5
cmp cx, bx
je 0xd01480
cmp dword [ebp - 0x1c], ebx
jne 0xd014c5
movzx ecx, word [eax]
cmp cx, bx
je 0xd01495
cmp cx, 0x20
ja 0xd01495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0xd01480
test byte [ebp - 0x40], 1
je 0xd014a1
movzx ecx, word [ebp - 0x3c]
jmp 0xd014a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0xd00000
call main
mov dword [0xd02030], eax
cmp dword [0xd02024], ebx
jne 0xd0150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0xd014d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0xd0146a
cmp dword [0xd02034], ebx
jne 0xd01518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0xd02030]
jmp 0xd01539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00d017f9
ret
call fcn.00d01901
jmp 0xd01361
Function at 0x4065af
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add eax, 0xb5e9
add byte [edx], ch
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
invalid
invalid

Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4
Function at 0x40ac10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x40ad1a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
sub eax, 0xffffff80
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea esi, [ecx + 2]
sub ecx, eax
lea edx, [eax + 2]
add ecx, 0xfffffffe
lea eax, [edi - 1]
mov dword [ebp + 0x14], edx
shr eax, 3
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop
movzx eax, byte [edx - 2]
add ecx, edx
push ecx
push ecx
push dword [ebp - 0xc]
mov byte [ecx], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
mov edi, dword [edx - 2]
mov ebx, dword [edx + 2]
call fcn.00409eb0
mov ecx, dword [ebp + 8]
lea esi, [esi + 8]
mov edx, dword [ebp + 0x14]
add esp, 0xc
movzx eax, byte [ecx + 0x100]
mov ecx, dword [ebp - 8]
xor byte [edx + ecx], al
add edx, 8
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x14], edx
movzx eax, byte [ecx + 0x101]
xor byte [esi - 9], al
movzx eax, byte [ecx + 0x102]
xor byte [esi - 8], al
movzx eax, byte [ecx + 0x103]
xor byte [esi - 7], al
movzx eax, byte [ecx + 0x104]
xor byte [esi - 6], al
movzx eax, byte [ecx + 0x105]
xor byte [esi - 5], al
movzx eax, byte [ecx + 0x106]
xor byte [esi - 4], al
movzx eax, byte [ecx + 0x107]
xor byte [esi - 3], al
sub dword [ebp - 4], 1
mov dword [ecx + 0x100], edi
mov dword [ecx + 0x104], ebx
mov ecx, dword [ebp - 8]
jne 0x40ac50
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40ff60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a45e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x630198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x104
call fcn.0042de74
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0042df3a
test eax, eax
lea eax, [ebp - 0x10]
push eax
je 0x40ffe3
push 0xf013f
push 0
push 0x5ab274
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410052
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
jmp 0x41000a
push 0xf003f
push 0
push 0x5ab274
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410052
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41002b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410052
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0042de87
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4107b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a46a6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x630198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.00447ad0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4108fe
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x410843
xor ecx, ecx
jmp 0x41085f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410850
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402110
push 1
push 0x5a9ce8
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.004052c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push esi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00410120
mov esi, eax
test esi, esi
je 0x4108d3
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4108cc
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00402260
mov eax, esi
jmp 0x4109ad
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4108f8
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00402260
mov esi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4109ab
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403700
push 1
push 0x5a9ce8
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.004052c0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00410120
mov esi, eax
test esi, esi
je 0x41098d
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4108cc
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.00402260
mov eax, esi
jmp 0x4109ad
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4109ab
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00402260
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c551
mov esp, ebp
pop ebp
ret 4
Function at 0x4109d0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x630198]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x428], eax
test eax, eax
jne 0x410a06
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c551
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], esi
push eax
push 9
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x41c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4109f3
push ebx
push edi
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00447ad0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x104
push eax
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x410b35
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x410b13
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.00447ad0
add esp, 0xc
mov dword [ebp - 0x424], 1
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410b07
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.00447cdd
add esp, 8
test eax, eax
mov eax, 1
cmovne esi, eax
push dword [ebp - 0x41c]
call ebx
test esi, esi
jne 0x410b35
push 0x104
lea eax, [ebp - 0x20c]
inc edi
push eax
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x410a71
push dword [ebp - 0x418]
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0043c551
mov esp, ebp
pop ebp
ret 4
Function at 0x411670
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x630198]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
jne 0x4116a2
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c551
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push 0
push eax
call fcn.00447ad0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x109
push 0
push str.SYSTEMCurrentControlSetServices_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41173f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
xor esi, esi
push esi
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x411730
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00453f5f
add esp, 8
test eax, eax
je 0x411753
push 0x104
lea eax, [ebp - 0x20c]
inc esi
push eax
push esi
push dword [ebp - 0x210]
call ebx
test eax, eax
je 0x411702
xor ebx, ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0043c551
mov esp, ebp
pop ebp
ret 4
mov ebx, 1
jmp 0x411732