joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40905d
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x414018]
xor eax, ebp
mov dword [ebp + 0x798], eax
push ebx
push esi
push edi
mov edi, ecx
push edi
mov dword [ebp - 0x70], edi
mov esi, edx
call dword [sym.imp.USER32.dll_GetDC]
xor ebx, ebx
push ebx
push ebx
push 0x31
push edi
mov dword [ebp - 0x6c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je 0x4090a7
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x400
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp + 0x7bc], 8
mov eax, dword [ebp + 0x7a8]
jae 0x4090cc
lea eax, [ebp + 0x7a8]
mov edi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x7b8]
push eax
push dword [ebp - 0x6c]
call edi
test eax, eax
je 0x40910d
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.MOZCRT19.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x6c]
call edi
test eax, eax
je 0x40910d
mov ecx, dword [ebp - 0x80]
sub ecx, dword [ebp - 0x78]
jns 0x409136
xor ebx, ebx
push 0
push 1
lea esi, [ebp + 0x7a4]
call fcn.0040516c
mov ecx, dword [ebp + 0x798]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e380
add ebp, 0x79c
leave
ret
mov eax, dword [ebp + 0x7c4]
test eax, eax
jne 0x409148
mov eax, dword [esi + 8]
sub eax, dword [esi]
sub eax, dword [ebp - 0x78]
cmp byte [ebp + 0x7c0], 0
lea ebx, [eax + ecx]
je 0x409158
sub dword [esi], ebx
jmp 0x40915b
add dword [esi + 8], ebx
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x40910d

Function at 0x4092b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ebp + 8]
push ebx
xor ebx, ebx
cmp byte [0x4148c0], bl
push esi
je 0x40933f
push edi
push 5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
mov esi, eax
push dword [ebp - 8]
push esi
call sub.MOZCRT19.dll_memcpy
or dword [esi + 8], 0x400000
add esp, 0xc
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push ebx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
jmp 0x409350
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a7a1
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1d4]
sub esp, 0x254
mov eax, dword [0x414018]
xor eax, ebp
mov dword [ebp + 0x1d0], eax
mov eax, dword [ebp + 0x1dc]
push ebx
push esi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push eax
xor esi, esi
push esi
push esi
push 0x1a
push esi
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x40a83f
lea eax, [ebp - 0x40]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a804
xor al, al
jmp 0x40a8f0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
push str.AppData
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x40]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x40a7fd
cmp dword [ebp - 0x48], 1
jne 0x40a7fd
cmp dword [ebp - 0x3c], esi
je 0x40a7fd
test byte [ebp - 0x3c], 1
jne 0x40a7fd
cmp dword [ebx + 0x14], esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x40a876
lea eax, [ebp - 0x64]
push eax
call fcn.0040a0d4
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40a85f
mov eax, dword [eax + 4]
jmp 0x40a862
add eax, 4
push eax
lea eax, [ebp - 0x38]
push eax
call edi
push esi
push 1
lea esi, [ebp - 0x64]
call fcn.0040516c
xor esi, esi
mov ebx, dword [ebp - 0x44]
lea eax, [ebp - 0x64]
push eax
call fcn.0040a0d4
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40a88e
mov eax, dword [eax + 4]
jmp 0x40a891
add eax, 4
push eax
lea eax, [ebp - 0x38]
push eax
call edi
push esi
push 1
lea esi, [ebp - 0x64]
call fcn.0040516c
push str.Crash_Reports
lea eax, [ebp - 0x38]
push eax
call edi
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x64]
call fcn.0040424e
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040a197
pop ecx
pop ecx
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
mov ecx, 0x41414c
call fcn.004044ff
push esi
push 1
lea ecx, [ebp - 0x80]
call fcn.00404a2b
push esi
push 1
lea esi, [ebp - 0x64]
call fcn.0040516c
mov al, 1
mov ecx, dword [ebp + 0x1d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e380
add ebp, 0x1d4
leave
ret

Function at 0x40a908
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
lea eax, [ebp - 0x1c]
push esi
push eax
mov ebx, ecx
call fcn.0040a0d4
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40a927
mov eax, dword [eax + 4]
jmp 0x40a92a
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x1c]
inc bl
call fcn.0040516c
pop esi
test bl, bl
pop ebx
je 0x40a95e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a95e
xor al, al
leave
ret
mov al, 1
leave
ret
Function at 0x40a962
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x1c]
sub esp, 0x1c
push eax
call fcn.0040a0d4
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40a97d
mov eax, dword [eax + 4]
jmp 0x40a980
add eax, 4
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 1
lea esi, [ebp - 0x1c]
mov edi, eax
call fcn.0040516c
xor eax, eax
cmp edi, 0xffffffff
pop edi
setne al
pop esi
leave
ret

Function at 0x40a9a3
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x18], 0x10
push edi
mov edi, dword [ebx + 0x14]
mov esi, ecx
jb 0x40a9be
mov eax, dword [ebx + 4]
jmp 0x40a9c1
lea eax, [ebx + 4]
mov ecx, dword [esi + 0x14]
push eax
mov eax, esi
call fcn.004049e3
test eax, eax
jne 0x40a9d4
mov al, 1
jmp 0x40aa31
lea eax, [ebp - 0x38]
push eax
call fcn.0040a0d4
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40a9e9
mov edi, dword [eax + 4]
jmp 0x40a9ec
lea edi, [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov ebx, esi
call fcn.0040a0d4
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40aa03
mov eax, dword [eax + 4]
jmp 0x40aa06
add eax, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, eax
dec ebx
neg ebx
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x1c]
inc bl
call fcn.0040516c
push 0
push 1
lea esi, [ebp - 0x38]
call fcn.0040516c
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aa36
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
lea eax, [ebp - 0x1c]
push esi
push eax
mov ebx, ecx
call fcn.0040a0d4
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40aa55
mov eax, dword [eax + 4]
jmp 0x40aa58
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
dec ebx
neg ebx
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x1c]
inc bl
call fcn.0040516c
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40d322
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x414018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x6a], bl
mov dword [ebp - 0x88], 0x40
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x50], 0xf
call fcn.00405b40
push ebx
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x4c]
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40d3b9
push 0xa
lea eax, [ebp - 0x4c]
push ebx
push eax
mov byte [ebp - 0x6a], 1
call dword [sym.imp.MOZCRT19.dll_wcstol]
mov edi, dword [ebp - 0x54]
add esp, 0xc
cmp edi, eax
mov dword [ebp - 0x78], eax
ja 0x40d3b9
cmp dword [ebp - 0x50], eax
je 0x40d3b9
push 1
push eax
lea ecx, [ebp - 0x68]
call fcn.00405b5c
test al, al
je 0x40d3b9
push edi
lea ecx, [ebp - 0x68]
call fcn.00405b40
mov edi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x74], ebx
push esi
jmp 0x40d461
mov ecx, dword [ebp - 0x70]
cmp ecx, ebx
jbe 0x40d48b
lea eax, [ebp - 0x69]
push eax
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 0x69], bl
call fcn.0040de01
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x70]
lea esi, [ebp - 0x98]
call fcn.0040dd3f
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
setne byte [ebp - 0x69]
cmp byte [ebp - 0x69], bl
je 0x40d477
mov eax, dword [ebp - 0x84]
cmp eax, ebx
jbe 0x40d477
add dword [ebp - 0x74], eax
push eax
call fcn.0040dd3f
push eax
lea eax, [ebp - 0x68]
call fcn.00405963
cmp dword [ebp - 0x94], ebx
je 0x40d446
push dword [ebp - 0x94]
call sub.MOZCRT19.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
call edi
test eax, eax
setne byte [ebp - 0x69]
cmp byte [ebp - 0x69], bl
jne 0x40d3ce
mov byte [ebp - 0x6a], bl
jmp 0x40d4d0
cmp dword [ebp - 0x94], ebx
je 0x40d48b
push dword [ebp - 0x94]
call sub.MOZCRT19.dll_void___cdecl_operator_delete_void__
pop ecx
cmp byte [ebp - 0x69], bl
je 0x40d472
cmp byte [ebp - 0x6a], bl
je 0x40d49d
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x74], eax
jne 0x40d472
cmp dword [ebp - 0x80], ebx
mov byte [ebp - 0x6a], 1
je 0x40d4d0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040daae
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x80]
xor ebx, ebx
call fcn.004070eb
push ebx
push 1
lea esi, [ebp - 0xa4]
call fcn.0040516c
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00404a2b
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x6a]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e380
leave
ret

Function at 0x40e380
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414018]
jne 0x40e38a
repz ret
jmp fcn.0040e880
Function at 0x40e430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x411568
push 0x40e792
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x414018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov ecx, dword fs:[0x18]
mov esi, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
push esi
push 0x414948
call edi
test eax, eax
je 0x40e4aa
cmp eax, esi
jne 0x40e4c5
mov ebx, 1
mov edx, dword [0x414944]
mov esi, 1
cmp edx, esi
jne 0x40e4d2
push 0x1f
call sub.MOZCRT19.dll__amsg_exit
add esp, 4
jmp 0x40e502
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e493
mov eax, dword [0x414944]
test eax, eax
jne 0x40e4fc
mov dword [0x414944], esi
push 0x410404
push 0x4103f0
call sub.MOZCRT19.dll__initterm_e
add esp, 8
test eax, eax
je 0x40e502
jmp 0x40e64e
mov dword [0x41435c], esi
mov ecx, dword [0x414944]
cmp ecx, esi
jne 0x40e528
push 0x4103ec
push 0x4103a4
call sub.MOZCRT19.dll__initterm
add esp, 8
mov dword [0x414944], 2
test ebx, ebx
jne 0x40e538
push ebx
push 0x414948
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x41494c], 0
je 0x40e55e
push 0x41494c
call fcn.0040eab0
add esp, 4
test eax, eax
je 0x40e55e
push 0
push 2
push 0
call dword [0x41494c]
mov eax, dword [sym.imp.MOZCRT19.dll__wcmdln]
cmp dword [eax], 0
je 0x40e64e
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, 0x20
ja 0x40e5ce
test ax, ax
je 0x40e586
test edx, edx
jne 0x40e5ce
movzx eax, word [ecx]
test ax, ax
je 0x40e59c
cmp ax, 0x20
ja 0x40e59c
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x40e586
test byte [ebp - 0x3c], 1
movzx eax, word [ebp - 0x38]
jne 0x40e5ab
mov eax, 0xa
push eax
push ecx
push 0
push 0x400000
call main
mov dword [0x414358], eax
cmp dword [0x41434c], 0
jne 0x40e618
push eax
call dword [sym.imp.MOZCRT19.dll_exit]
cmp ax, 0x22
jne 0x40e5e0
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x40e574
cmp dword [0x41435c], 0
jne 0x40e627
call dword [sym.imp.MOZCRT19.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x414358]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e770
Capabilities:
Terminate process

Disassembly:
call fcn.0040ebc0
jmp fcn.0040e430
Function at 0x4786d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x55000]
push edi
or ebp, 0xffffffff
jmp 0x4786f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4786f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4786e8
mov eax, 1
add ebx, ebx
jne 0x47870b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x478700
jne 0x47871c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x478700
xor ecx, ecx
sub eax, 3
jb 0x478730
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4787a2
mov ebp, eax
add ebx, ebx
jne 0x47873b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x478748
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47876c
inc ecx
add ebx, ebx
jne 0x478758
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47874d
jne 0x478769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47874d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47878c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47877d
jmp 0x4786ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47878c
add edi, ecx
jmp 0x4786ee
pop esi
mov edi, esi
mov ecx, 0x27b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4787aa
cmp byte [edi], 9
jne 0x4787aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4787af
lea edi, [esi + 0x76000]
mov eax, dword [edi]
or eax, eax
je 0x478827
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7dcc0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7dcfc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4787dc
mov ecx, edi
jns 0x47880b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7dd00]
or eax, eax
je 0x478821
mov dword [ebx], eax
add ebx, 4
jmp 0x4787f9
call dword [esi + 0x7dd10]
mov ebp, dword [esi + 0x7dd04]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47885b
sub esp, 0xffffff80
jmp 0x4027f0
Function at 0x401730
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
cmp ecx, 6
ja 0x40174d
jne 0x401753
shr eax, 8
cmp al, 1
jb 0x401753
mov al, 1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v2.0.50727
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401778
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push esi
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x4181fc
push eax
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x401772
cmp dword [ebp - 8], 2
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4017c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x41b494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40181f
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404edf
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0xfffff000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x808]
push edx
push 0x1000
push edi
push esi
mov dword [ebp - 0x808], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.00404edf
mov esp, ebp
pop ebp
ret
Function at 0x401870
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x41b494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x808]
push eax
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
lea ecx, [ebp - 0x808]
push ecx
call ebx
mov esi, eax
mov dword [ebp - 0x810], esi
cmp esi, 0xffffffff
je 0x4018f1
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push edi
call ebx
mov dword [ebp - 0x818], eax
cmp eax, 0xffffffff
jne 0x401904
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404edf
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0x100000
call fcn.0040589d
mov esi, eax
xor eax, eax
add esp, 4
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x814], eax
cmp dword [ebp + 0x14], eax
jb 0x401a0f
ja 0x40194c
cmp dword [ebp + 0x10], eax
jbe 0x401a0f
push 0x100000
push 0
push esi
call fcn.004095b0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add esp, 0xc
sub eax, ebx
sbb ecx, edi
mov dword [ebp - 0x81c], ecx
jne 0x401975
cmp eax, 0x100000
jbe 0x40197a
mov eax, 0x100000
push 0
lea edx, [ebp - 0x80c]
push edx
push eax
mov eax, dword [ebp - 0x810]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
test eax, eax
je 0x4019e1
mov edx, dword [ebp - 0x80c]
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x814]
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4019ed
mov eax, dword [ebp - 0x80c]
cmp eax, dword [ebp - 0x814]
jne 0x4019fb
add ebx, eax
adc edi, 0
cmp edi, dword [ebp + 0x14]
jb 0x40194c
ja 0x401a0f
cmp ebx, dword [ebp + 0x10]
jb 0x40194c
jmp 0x401a0f
push 0x418204
push str.ReadFile_Error
jmp 0x401a07
push 0
push 0x418204
push str.WriteFile_Error
jmp 0x401a07
push 0
push 0x418204
push str.read_bytes___write_bytes_Error
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call fcn.00405064
mov ecx, dword [ebp - 0x810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [ebp - 0x818]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00404edf
mov esp, ebp
pop ebp
ret
Function at 0x401a50
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x41b494]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push 0x193c
push 0x3f4
push 5
push 6
push eax
push str._s__d._d._d._d
lea edx, [ebp - 0x80c]
call fcn.004042a0
add esp, 0x18
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x44
lea ecx, [ebp - 0x86c]
push 0
push ecx
call fcn.004095b0
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x820]
push edx
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x86c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x80c]
push ecx
push 0
mov dword [ebp - 0x86c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404edf
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x820]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x820]
lea eax, [ebp - 0x810]
push eax
push ecx
mov dword [ebp - 0x810], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x820]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x81c]
push eax
call esi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x810]
xor ecx, ebp
pop esi
call fcn.00404edf
mov esp, ebp
pop ebp
ret
Function at 0x401d60
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18d4
call fcn.00412b60
mov eax, dword [0x41b494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
or eax, dword [ebp + 0xc]
push edi
jne 0x401d95
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404edf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18d0]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, dword [ebp + 0x10]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push ebx
push esi
lea edx, [ebp - 0x18d0]
push edx
lea eax, [ebp - 0x8d0]
push str._s_d__d.exe
push eax
call edi
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
add esp, 0x14
push ecx
push ebx
push edx
push esi
lea ecx, [ebp - 0x8d0]
call fcn.00401870
add esp, 0x10
test eax, eax
jne 0x401e2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8d0]
push eax
lea ecx, [ebp - 0xd0]
push str.Extract_file_error..._ext_name_s__error_d
push ecx
call edi
add esp, 0x10
push 0
push str.D_Security
lea edx, [ebp - 0xd0]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404edf
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x8d0]
push eax
lea ecx, [ebp - 0x10d0]
push str._s.config
push ecx
call edi
lea edx, [ebp - 0x10d0]
add esp, 0xc
push edx
call fcn.00401b70
lea eax, [ebp - 0x8d0]
add esp, 4
push eax
call fcn.00401a50
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 4
lea ecx, [ebp - 0x8d0]
push ecx
mov esi, eax
call edi
lea edx, [ebp - 0x10d0]
push edx
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404edf
mov esp, ebp
pop ebp
ret