joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4095ab
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x41c380]
push ebx
push esi
push edi
mov dword [ebp + 0xb0], eax
mov ebx, ecx
push 0x3f
xor eax, eax
pop ecx
mov byte [ebp - 0x80], 0
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, str.WTSAPI32.dll
lea edi, [ebp + 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 8
xor eax, eax
cmp dword [ebx + 8], 0
pop ecx
lea edi, [ebp + 0x8d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x40968e
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp + 0x80]
push eax
call esi
test eax, eax
mov dword [ebx + 8], eax
jne 0x40966a
push 0xff
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x40964f
lea eax, [ebp - 0x80]
push eax
call fcn.0040c8a0
cmp byte [ebp + eax - 0x81], 0x5c
pop ecx
je 0x40964f
lea eax, [ebp - 0x80]
push 0x41734c
push eax
call fcn.0040c7b0
pop ecx
pop ecx
lea eax, [ebp + 0x80]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040c7b0
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
call esi
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x40968e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSRegisterSessionNotification
push eax
call esi
push str.WTSUnRegisterSessionNotification
push dword [ebx + 8]
mov dword [ebx], eax
call esi
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 0xb0]
xor eax, eax
cmp dword [ebx], eax
pop edi
pop esi
setne al
pop ebx
call fcn.0040c95c
add ebp, 0xb4
leave
ret

Function at 0x4097f5
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x41c380]
push esi
push edi
mov dword [ebp + 0x84], eax
push 0x40
xor eax, eax
mov byte [ebp - 0x80], 0
pop ecx
push dword [ebp + 0x90]
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x80]
push eax
call fcn.0040c7a0
lea eax, [ebp - 0x80]
push str.XJABCVer.ini
push eax
call fcn.0040c7b0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call esi
push dword [ebp + 0x90]
lea eax, [ebp - 0x80]
push eax
call fcn.0040c7a0
lea eax, [ebp - 0x80]
push str.XJABCSetup.exe
push eax
call fcn.0040c7b0
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x90]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
call fcn.0040c95c
add ebp, 0x88
leave
ret
Function at 0x40989c
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41c380]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x20c], 0
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
xor ebx, ebx
mov edi, str._sAbcCyInstUpdate_d_
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040c9d0
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x409938
lea eax, [ebp - 0x108]
push eax
call fcn.004097f5
inc ebx
cmp ebx, 0x7d0
pop ecx
jl 0x4098fd
xor ebx, ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040c9d0
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x409975
lea eax, [ebp - 0x108]
push eax
call fcn.004097f5
inc ebx
cmp ebx, 0x7d0
pop ecx
jl 0x40993a
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x40999e
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040c7a0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0040c95c
leave
ret

Function at 0x40a34f
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c28
call fcn.0040cf60
mov eax, dword [0x41c380]
push edi
push 0x1c24
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c28]
push 0
push eax
call fcn.0040c970
add esp, 0xc
lea eax, [ebp - 0x1c28]
push eax
push 0x40a2c0
call dword [sym.imp.USER32.dll_EnumWindows]
xor edi, edi
cmp dword [ebp - 8], edi
jle 0x40a3bd
push esi
lea esi, [ebp - 0x1c28]
push dword [esi]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
inc edi
add esi, 0x48
cmp edi, dword [ebp - 8]
jl 0x40a39b
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
pop edi
call fcn.0040c95c
leave
ret

Function at 0x40a3cb
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c28
call fcn.0040cf60
mov eax, dword [0x41c380]
push esi
push 0x1c24
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 0x1c28]
push esi
push eax
call fcn.0040c970
add esp, 0xc
lea eax, [ebp - 0x1c28]
push eax
push 0x40a2c0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 8], esi
jle 0x40a410
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.0040c95c
leave
ret
Function at 0x40a484
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov eax, 0x501c
lea ebp, [esp - 0x4f9c]
call fcn.0040cf60
mov eax, dword [0x41c380]
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.HTTP_Downloader
mov dword [ebp + 0x4f98], eax
xor edi, edi
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x80], eax
je 0x40a5e7
push esi
push ebx
push 0x84000002
push ebx
push ebx
push dword [ebp + 0x4fa4]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x78], esi
je 0x40a5dd
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
push 5
push esi
mov dword [ebp - 0x6c], 0x5000
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40a510
lea eax, [ebp - 0x68]
push eax
call fcn.0040e2e0
pop ecx
mov dword [ebp - 0x74], eax
jmp 0x40a517
mov dword [ebp - 0x74], 0x64000
push 0x4182b0
push dword [ebp + 0x4fa8]
call fcn.0040e104
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x6c]
push eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x68]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x40a5b3
cmp dword [ebp - 0x6c], 0
jbe 0x40a5b9
cmp dword [ebp - 0x70], 0
je 0x40a563
push dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push dword [ebp - 0x6c]
push 1
push eax
call fcn.0040e294
add esp, 0x10
add ebx, dword [ebp - 0x6c]
push 0
test ebx, ebx
mov dword [ebp - 0x7c], ebx
fild dword [ebp - 0x7c]
jge 0x40a578
fadd qword [0x4182a8]
mov eax, dword [ebp - 0x74]
fmul qword [0x4182a0]
test eax, eax
fild dword [ebp - 0x74]
jge 0x40a58e
fadd qword [0x4182a8]
fdivp st(1)
call fcn.0040e118
push eax
push 0x402
push dword [ebp + 0x4fac]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x6c]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x78]
call esi
test eax, eax
jne 0x40a543
cmp dword [ebp - 0x70], 0
je 0x40a5c8
push dword [ebp - 0x70]
call fcn.0040dca7
pop ecx
cmp ebx, dword [ebp - 0x74]
je 0x40a5da
cmp dword [ebp - 0x74], 0x64000
je 0x40a5da
xor edi, edi
jmp 0x40a5dd
xor edi, edi
inc edi
push dword [ebp - 0x80]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
mov ecx, dword [ebp + 0x4f98]
mov eax, edi
pop edi
pop ebx
call fcn.0040c95c
add ebp, 0x4f9c
leave
ret
Function at 0x40b0c0
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], 1
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov eax, 1
test eax, eax
je 0x40b1c1
lea ecx, [ebp - 0x20]
push ecx
push 0x3e8
push 0x800
push 0x800
push 0xff
push 6
push 3
mov edx, dword [str..pipec20ukdrwpipe_winnt]
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x42d8ac], eax
cmp dword [0x42d8ac], 0xffffffff
jne 0x40b141
xor eax, eax
jmp 0x40b1c4
push 0
mov eax, dword [0x42d8ac]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40b16c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x40b16c
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0
je 0x40b1a5
lea ecx, [ebp - 0x2c]
push ecx
push 0
mov edx, dword [0x42d8ac]
push edx
push 0x40b210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40b199
jmp 0x40b1c1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b1bc
mov ecx, dword [0x42d8ac]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42d8ac], 0
jmp 0x40b0f6
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x40b580
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x41c0fc]
push eax
call fcn.0040b520
add esp, 4
test eax, eax
je 0x40b5a5
mov eax, 1
jmp 0x40b6ba
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40b5c4
xor eax, eax
jmp 0x40b6ba
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [str.c20ukdrwsvr.exe], 0
je 0x40b646
mov edx, dword [str.c20ukdrwsvr.exe]
movsx eax, byte [edx]
test eax, eax
je 0x40b646
push str..exe
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040d090
add esp, 8
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x40b627
mov ecx, dword [ebp - 0x114]
sub ecx, 1
mov dword [ebp - 0x114], ecx
jmp 0x40b608
mov edx, dword [ebp - 0x114]
mov byte [edx + 1], 0
mov eax, dword [str.c20ukdrwsvr.exe]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040c7b0
add esp, 8
push 0
push 0
push 0x418ce1
push 0
push 0
lea edx, [ebp - 0x110]
push edx
push 1
push 2
push 0x10
push 0xf01ff
mov eax, dword [0x41c0fc]
push eax
mov ecx, dword [0x41c0fc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b693
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40b6ba
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40b6c0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41c0fc]
push eax
call fcn.0040b520
add esp, 4
test eax, eax
jne 0x40b6e2
mov eax, 1
jmp 0x40b76b
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40b6fe
xor eax, eax
jmp 0x40b76b
push 0x10020
mov ecx, dword [0x41c0fc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40b72b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40b76b
lea ecx, [ebp - 0x28]
push ecx
push 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
je 0x40b769
mov eax, 1
jmp 0x40b76b
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40be19
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41c380]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [ebx + ebx]
lea eax, [edi + 1]
push eax
call fcn.0040cf40
pop ecx
xor ecx, ecx
test ebx, ebx
mov esi, eax
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x33
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x35
mov byte [ebp - 0xe], 0x36
mov byte [ebp - 0xd], 0x37
mov byte [ebp - 0xc], 0x38
mov byte [ebp - 0xb], 0x39
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 9], 0x42
mov byte [ebp - 8], 0x43
mov byte [ebp - 7], 0x44
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x46
jbe 0x40be9c
mov eax, dword [ebp + 8]
add eax, ecx
mov dl, byte [eax]
shr dl, 4
mov byte [esi + ecx*2], dl
mov al, byte [eax]
and al, 0xf
mov byte [esi + ecx*2 + 1], al
inc ecx
cmp ecx, ebx
jb 0x40be82
xor eax, eax
test edi, edi
jbe 0x40beb2
movzx ecx, byte [eax + esi]
mov cl, byte [ebp + ecx - 0x14]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x40bea2
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40bec1
mov eax, dword [eax]
cmp eax, edi
jae 0x40bec1
mov edi, eax
push edi
push esi
push dword [ebp + 0x10]
call fcn.0040ca30
push esi
call fcn.0040ce28
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
call fcn.0040c95c
leave
ret

Function at 0x40bf43
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0x158
mov eax, dword [0x41c380]
push esi
push edi
push 0xff
mov dword [ebp + 0xd4], eax
xor esi, esi
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040c970
push dword [ebp + 0xe0]
call fcn.0040c8a0
push eax
push dword [ebp + 0xe0]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ca30
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040c970
add esp, 0x28
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x8000020
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, 1
jne 0x40bfe3
mov eax, dword [ebp + 0xe4]
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x40bfd9
push dword [ebp - 0x3c]
call esi
jmp 0x40bfde
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0xd4]
mov eax, edi
pop edi
pop esi
call fcn.0040c95c
add ebp, 0xd8
leave
ret
Function at 0x40c24b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41c380]
push edi
mov dword [ebp - 4], eax
push 0x3f
xor eax, eax
mov byte [ebp - 0x104], 0
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.0040c7a0
push dword [ebp + 0xc]
call fcn.0040c8a0
add esp, 0xc
test eax, eax
pop edi
jbe 0x40c2a4
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.0040c7b0
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40c2c5
xor eax, eax
jmp 0x40c2f5
push esi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x108]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040c95c
leave
ret

Function at 0x40c2ff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x41c380]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40c326
xor eax, eax
jmp 0x40c350
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040c95c
leave
ret

Function at 0x40c44c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x41c380]
mov dword [ebp - 4], eax
call fcn.0040bffa
test eax, eax
mov eax, str.SOFTWAREWow6432NodeMicrosoftCryptographyDefaultsProviderComyiSafe_CSP_V3.0_
jne 0x40c46d
mov eax, str.SOFTWAREMicrosoftCryptographyDefaultsProviderComyiSafe_CSP_V3.0_
lea ecx, [ebp - 0x48]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c4cb
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push str.version
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x48]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
test esi, esi
mov byte [eax], 0
pop esi
jne 0x40c4cb
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.0040c7a0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0040c95c
leave
ret
Function at 0x40c4d5
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x42ef90]
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x42ef8c]
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x17d5
push edi
call esi
push 0x42ede4
xor ebx, ebx
inc ebx
push ebx
push edi
call esi
push 0x42edee
push 0x17d6
push edi
call esi
push 0x42edf8
mov ebp, 0x17d7
push ebp
push edi
call esi
test byte [0x42ef88], 4
jle 0x40c56f
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 1
push 0x17d6
push edi
call ebx
push eax
call esi
push 1
push ebp
push edi
call ebx
push eax
call esi
test dword [0x42ef88], 0x100
jle 0x40c568
push ebp
jmp 0x40c59b
push 0x17d6
jmp 0x40c59b
push ebx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x17d6
push edi
call ebx
push eax
call esi
push 0
push ebp
push edi
call ebx
push eax
call esi
push 1
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
cmp dword [0x42ef94], ebx
jne 0x40c5d9
push 6
push edi
mov dword [0x42ef94], 1
call esi
push 9
push edi
call esi
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
ret
Function at 0x40d2b9
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4190e0
call fcn.0040d9e0
mov edi, 0x94
mov eax, edi
call fcn.0040cf60
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42f128], ecx
mov eax, dword [esi + 4]
mov dword [0x42f134], eax
mov edx, dword [esi + 8]
mov dword [0x42f138], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42f12c], esi
cmp ecx, 2
je 0x40d319
or esi, 0x8000
mov dword [0x42f12c], esi
shl eax, 8
add eax, edx
mov dword [0x42f130], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d354
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d354
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d36c
cmp eax, 0x20b
je 0x40d359
mov dword [ebp - 0x1c], esi
jmp 0x40d380
cmp dword [ecx + 0x84], 0xe
jbe 0x40d354
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d37a
cmp dword [ecx + 0x74], 0xe
jbe 0x40d354
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040f3df
pop ecx
test eax, eax
jne 0x40d394
push 0x1c
call fcn.0040d295
pop ecx
call fcn.00410776
test eax, eax
jne 0x40d3a5
push 0x10
call fcn.0040d295
pop ecx
call fcn.0041123e
mov dword [ebp - 4], esi
call fcn.00411040
test eax, eax
jge 0x40d3be
push 0x1b
call fcn.0040d270
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x430834], eax
call fcn.00410f1e
mov dword [0x42efb4], eax
call fcn.00410e7c
test eax, eax
jge 0x40d3e4
push 8
call fcn.0040d270
pop ecx
call fcn.00410c49
test eax, eax
jge 0x40d3f5
push 9
call fcn.0040d270
pop ecx
push 1
call fcn.004103b5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40d40b
push eax
call fcn.0040d270
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00410bec
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40d42c
movzx eax, word [ebp - 0x40]
jmp 0x40d42f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00405a86
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40d44d
push edi
call fcn.004104e2
call fcn.00410504
jmp 0x40d47f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040da1b
ret