joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af530
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x84]
push edi
lea edi, [esi + 0x84]
nop
test al, al
je 0x4af59e
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x4af59e
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x4af59e
push 1
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x90], 0
mov eax, dword [ecx]
call dword [eax + 8]
xor al, al
xchg byte [edi], al
mov ecx, dword [esi + 0x68]
lea eax, [esi + 0x34]
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop esi
ret
Function at 0x4b1a50
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub dword [0x5969fc], 1
push esi
mov esi, ecx
jne 0x4b1a82
mov eax, dword [0x5968fc]
test eax, eax
je 0x4b1a82
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov ecx, dword [0x5968fc]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [0x5968fc], ecx
push 0xc8
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4b1aa8
push 1
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
pop esi
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x10
Function at 0x4b2830
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a8bd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x58e5a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 2
push 0xffffffffffffffff
push 0x100c
push dword [edi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x4b29a1
mov ecx, dword [edi + 0x78]
mov ecx, dword [ecx + eax*4]
mov eax, dword [edi + 0x6c]
mov esi, dword [eax + ecx*8]
add esi, 0x48
cmp dword [esi + 0x14], 8
jb 0x4b288a
mov esi, dword [esi]
call fcn.00410080
mov ecx, eax
test ecx, ecx
je 0x4b29b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push esi
call fcn.0040c680
test al, al
jne 0x4b28de
test esi, esi
jne 0x4b28c0
xor ecx, ecx
jmp 0x4b28d4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b28c5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.0040d3a0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 0x22
call fcn.00424640
lea eax, [ebp - 0x10]
push eax
call fcn.00437a50
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [edi + 4]
cmp eax, 0xffffffff
jne 0x4b2923
push 0x10
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x81
mov eax, esp
push esi
mov dword [eax], str.File_does_not_exist.
jmp 0x4b2977
push 0x38
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0x3c
push 0
push eax
call fcn.004d52d0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], str.properties
mov dword [ebp - 0x4c], 0xc
push eax
mov dword [ebp - 0x48], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4b297f
mov ecx, dword [edi + 4]
push 0x10
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x81
mov eax, esp
push ecx
mov dword [eax], str.Failed_to_show_file_properties
call fcn.00477060
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b29a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040fbc0
int3
Function at 0x4b36c0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x6c]
push edi
push dword [edi + 4]
push dword [edi]
call fcn.0040ecd0
mov eax, dword [edi]
add esp, 0xc
mov dword [edi + 4], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 8]
sub eax, dword [edi]
sar eax, 3
cmp eax, 0x40
jae 0x4b36f6
push 0x40
mov ecx, edi
call fcn.00473c70
mov eax, dword [edi + 0x14]
lea ecx, [edi + 0xc]
sub eax, dword [ecx]
sar eax, 2
cmp eax, 0x40
jae 0x4b370d
push 0x40
call fcn.004a1e40
push 0
push 0
push 0x102f
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 0x64], 0
je 0x4b375a
mov cl, 1
lea eax, [esi + 0x84]
xchg byte [eax], cl
mov eax, dword [esi + 0x90]
test eax, eax
je 0x4b3740
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push esi
push 0x4ac5b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x90], eax
call fcn.0048e580
push str.CheckVirusTotal
mov ecx, eax
call fcn.00484860
test eax, eax
je 0x4b3781
push 0
push 0x1388
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
ret
Function at 0x4b56b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b200
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [ebx + 4]
push esi
mov dword [ebp - 0x3a4], esi
inc dword [eax]
call fcn.004e258d
mov ecx, dword [ebx + 4]
add esp, 4
cmp eax, dword [ecx]
je 0x4b570d
mov eax, dword [ebx + 8]
mov byte [eax], 1
xor al, al
jmp 0x4b5815
xor edi, edi
mov dword [ebp - 0x39c], 0x378
mov dword [ebp - 0x398], edi
mov dword [ebp - 0x394], edi
mov dword [ebp - 0x390], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x38c]
mov eax, dword [ebx + 0xc]
push ecx
push 1
push edi
push esi
push dword [eax]
mov dword [ebp - 0x38c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b57ed
mov edi, dword [ebp - 0x38c]
mov dword [ebp - 0x394], eax
mov dword [ebp - 0x398], edi
mov dword [ebp - 0x394], eax
test edi, edi
je 0x4b57ed
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x3a0]
push eax
push 0
push str.PackedCatalogItem
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b57ed
cmp dword [ebp - 0x3a0], 3
jne 0x4b57ed
mov ecx, dword [ebx + 0x10]
lea edx, [ebp - 0x270]
lea esi, [eax + 0xc]
nop word [eax + eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4b57ed
add edx, 4
add ecx, 4
sub esi, 4
jae 0x4b57b0
mov edx, dword [ebp - 0x3a4]
test edx, edx
jne 0x4b57cf
xor ecx, ecx
jmp 0x4b57e3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b57d4
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebx + 0x14]
push edx
call fcn.0040d3a0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b5809
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x394], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 8
Function at 0x4b5840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b23d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [ebx + 4]
push esi
mov dword [ebp - 0x3c], esi
inc dword [eax]
call fcn.004e258d
mov ecx, dword [ebx + 4]
add esp, 4
cmp eax, dword [ecx]
je 0x4b5897
mov eax, dword [ebx + 8]
mov byte [eax], 1
xor al, al
jmp 0x4b595f
xor edi, edi
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x24]
mov eax, dword [ebx + 0xc]
push ecx
push 1
push edi
push esi
push dword [eax]
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b593d
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x4b593d
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push str.ProviderId
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b593d
cmp dword [ebp - 0x38], 3
jne 0x4b593d
mov ecx, dword [ebx + 0x10]
lea edx, [ebp - 0x20]
lea esi, [eax + 0xc]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4b593d
add edx, 4
add ecx, 4
sub esi, 4
jae 0x4b5903
mov edx, dword [ebp - 0x3c]
test edx, edx
jne 0x4b591f
xor ecx, ecx
jmp 0x4b5933
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b5924
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebx + 0x14]
push edx
call fcn.0040d3a0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b5956
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 8
Function at 0x4b5c90
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, dword [eax + 0xdc]
test esi, esi
je 0x4b5d3e
lea eax, [ebp - 0x20c]
add esi, 0x18
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x5458a4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4b5d3e
push str..txt
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004fbc53
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b5d52
push 0x10
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x81
mov eax, esp
push 0
mov dword [eax], str.Failed_to_create_temporary_file
call fcn.00477060
add esp, 0x10
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x10]
add eax, eax
cmp dword [esi + 0x14], 8
jb 0x4b5d5f
mov esi, dword [esi]
push 0
lea ecx, [ebp - 0x210]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 4
Function at 0x4b6350
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, dword [eax + 0xdc]
test esi, esi
je 0x4b63fe
lea eax, [ebp - 0x20c]
add esi, 0x18
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x5458a4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4b63fe
push str..txt
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004fbc53
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b6412
push 0x10
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x81
mov eax, esp
push 0
mov dword [eax], str.Failed_to_create_temporary_file
call fcn.00477060
add esp, 0x10
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x10]
add eax, eax
cmp dword [esi + 0x14], 8
jb 0x4b641f
mov esi, dword [esi]
push 0
lea ecx, [ebp - 0x210]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 4

Function at 0x4b65f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
test edi, edi
je 0x4b6691
mov edx, dword [ebp + 0xc]
lea eax, [edx - 1]
test eax, eax
jne 0x4b6691
cmp edx, 1
jne 0x4b6680
push esi
push 0x110
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004d52d0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b6670
mov eax, dword [ebp - 0x114]
cmp eax, 6
ja 0x4b666b
cmp eax, 6
jne 0x4b6670
cmp dword [ebp - 0x110], esi
jbe 0x4b6670
mov esi, 1
shl esi, 0xb
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
pop esi
mov eax, ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004d2a60
mov esp, ebp
pop ebp
ret
Function at 0x4b6a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x101
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b6a90
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EulaAccepted
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4b6a90
cmp dword [ebp - 8], 0
je 0x4b6a90
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4b6f30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test edi, edi
je 0x4b6fe0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b6fe0
xor esi, esi
cmp dword [edi], ebx
jle 0x4b6fbe
nop dword [eax]
nop dword [eax + eax]
push 0x54babc
push dword [eax + esi*4]
call fcn.004fb9d0
add esp, 8
test eax, eax
je 0x4b6f97
mov eax, dword [ebp + 0x10]
push str._accepteula
push dword [eax + esi*4]
call fcn.004fb9d0
add esp, 8
test eax, eax
je 0x4b6f97
mov eax, dword [ebp + 0x10]
inc esi
xor ebx, ebx
cmp esi, dword [edi]
jl 0x4b6f60
jmp 0x4b6fbe
mov edx, dword [edi]
mov ebx, 1
lea eax, [edx - 1]
cmp esi, eax
jge 0x4b6fb9
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + esi*4 + 4]
mov dword [ecx + esi*4], eax
inc esi
mov edx, dword [edi]
lea eax, [edx - 1]
cmp esi, eax
jl 0x4b6fa8
lea eax, [edx - 1]
mov dword [edi], eax
push ebx
push dword [ebp + 8]
call fcn.004b7140
add esp, 8
mov ecx, 1
test eax, eax
cmovne ebx, ecx
xor eax, eax
pop edi
test ebx, ebx
pop esi
setne al
pop ebx
pop ebp
ret
push 0x54ba90
push 1
push str.Shell32.dll
xor edi, edi
call fcn.004b65f0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4b7084
push 0x596a14
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
xor esi, esi
mov ebx, eax
cmp dword [0x596a14], esi
jle 0x4b7084
push 0x54babc
push dword [ebx + esi*4]
call fcn.004fb9d0
add esp, 8
test eax, eax
je 0x4b7056
push str._accepteula
push dword [ebx + esi*4]
call fcn.004fb9d0
add esp, 8
test eax, eax
je 0x4b7056
inc esi
xor edi, edi
cmp esi, dword [0x596a14]
jl 0x4b7021
jmp 0x4b7084
mov ecx, dword [0x596a14]
mov edi, 1
lea eax, [ecx - 1]
cmp esi, eax
jge 0x4b707d
mov eax, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4], eax
inc esi
mov ecx, dword [0x596a14]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x4b7068
dec ecx
mov dword [0x596a14], ecx
push edi
push dword [ebp + 8]
call fcn.004b7140
add esp, 8
mov ecx, 1
test eax, eax
cmovne edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b7110
Capabilities:
Terminate process

Disassembly:
push dword [0x58e57c]
push 0x54bc2c
call fcn.004b76d0
push str.This_is_the_first_run_of_this_program._You_must_accept_EULA_to_continue._n
call fcn.004b76d0
push str.Use__accepteula_to_accept_EULA._n_n
call fcn.004b76d0
add esp, 0x10
push 1
call fcn.004ff709
int3
Function at 0x4d36ae
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x5894d0
call fcn.004d3f50
push 1
call fcn.004d2641
pop ecx
test al, al
je 0x4d3641
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004d2546
mov byte [ebp - 0x24], al
mov eax, dword [0x596da4]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4d3641
test eax, eax
jne 0x4d3565
mov dword [0x596da4], ecx
push 0x541984
push 0x54195c
call fcn.0050607e
pop ecx
pop ecx
test eax, eax
je 0x4d3548
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4d3631
push 0x541950
push 0x5418cc
call fcn.00506039
pop ecx
pop ecx
mov dword [0x596da4], 2
jmp 0x4d356a
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004d2795
pop ecx
call fcn.004d4124
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4d359b
push esi
call fcn.004d2701
pop ecx
test al, al
je 0x4d359b
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x5418c4]
call esi
call fcn.004d412a
mov esi, eax
cmp dword [esi], edi
je 0x4d35b9
push esi
call fcn.004d2701
pop ecx
test al, al
je 0x4d35b9
push dword [esi]
call fcn.004ff6e3
pop ecx
call fcn.004d3e5b
movzx esi, ax
call fcn.00505fef
push esi
push eax
push edi
push 0x400000
call fcn.0047a3a0
mov esi, eax
call fcn.004d3e94
test al, al
je 0x4d3648
test bl, bl
jne 0x4d35e7
call fcn.004ff6b7
push edi
push 1
call fcn.004d27b2
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4d3631
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.004d3d40
push esi
call fcn.004ff709
push dword [ebp - 0x20]
call fcn.004ff6c6
int3
mov edi, edi
push ebp
mov ebp, esp
jmp 0x4d34db

Function at 0x514ee5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005148a3

Function at 0x515198
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051506c

Function at 0x51ee54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051ea4c

Function at 0x51ee5f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051ebd6
Function at 0x401000
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4093d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov al, byte [0x410434]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x14]
lea ecx, [esp + 8]
push edx
mov dword [esp + 0x124], 1
call sub.MFC42.DLL_CString::operator
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [esp + 0x128]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00408fac
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x401100
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4093e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x5c
push 0x2f
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::Replace_1
push 0x40f048
push 0x40f044
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Replace
push 0x40f040
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
test esi, esi
jg 0x401179
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc esi
lea ecx, [esp + 0x1c]
push esi
push 0x40f048
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jle 0x4011bc
lea eax, [esi + 1]
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
mov edx, dword [esp + 8]
push 0
push edx
call edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
jmp 0x401180
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401230
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2808
call fcn.00408d70
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push 0
mov dword [ebp - 4], 0
call fcn.00401430
mov ebx, dword [ebp + 0xc]
push 0x410434
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
mov ecx, esi
call fcn.004013f0
push 0
push 0
push 0
push 0
push str.myie
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4012c0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xc9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0
push 0x80000000
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
mov dword [esi + 8], eax
jne 0x401304
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xca
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dl, byte [0x410434]
mov ecx, 0xa00
xor eax, eax
lea edi, [ebp - 0x2817]
mov byte [ebp - 0x2818], dl
mov byte [ebp - 4], 1
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [esi + 0xc], 1
je 0x4013b5
mov edx, dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2818]
push 0x2800
push ecx
push edx
call edi
test eax, eax
je 0x4013c3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4013b5
mov byte [ebp + eax - 0x2818], 0
lea eax, [ebp - 0x2818]
push eax
lea ecx, [ebp + 0xc]
push ebx
push ecx
call sub.MFC42.DLL_operator
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x40132a
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004013f0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8