joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463050
Capabilities:
Receive http response
Send data
Send http request

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
mov edi, dword [esp + 0x24]
mov ebp, dword [edi + 4]
xor ebx, ebx
cmp ebp, ebx
jne 0x4630a4
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x463091
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esi + 0x10], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne al
cmp al, bl
mov byte [esi + 0x24], bl
je 0x463091
mov eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov eax, dword [esp + 0x20]
pop edi
pop ebp
mov dword [eax], 1
pop ebx
add esp, 0x10
ret 0x10
cmp byte [esp + 0x28], bl
je 0x4630e0
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4630cd
push ebx
push ebp
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esi + 0x10], ebp
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne al
cmp al, bl
mov byte [esi + 0x24], bl
jne 0x4630e0
mov eax, dword [esp + 0x20]
pop edi
pop ebp
mov dword [eax], 5
pop ebx
add esp, 0x10
ret 0x10
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0x2800
mov ecx, edi
call eax
test al, al
jne 0x463105
mov eax, dword [esp + 0x20]
pop edi
pop ebp
mov dword [eax], 2
pop ebx
add esp, 0x10
ret 0x10
xor edi, edi
cmp byte [esp + 0x2c], bl
mov byte [esp + 0xc], 1
je 0x463118
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebx
cmp ebp, ebx
jbe 0x4631b3
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call edx
test al, al
je 0x4631d3
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4631b3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
je 0x4630cd
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4631b3
cmp byte [esp + 0x2c], bl
je 0x4631a1
add edi, eax
xor eax, eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x28]
cmp eax, ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], edi
je 0x4631a1
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esi + 0x30]
push edx
call eax
add esp, 8
cmp byte [esp + 0xc], bl
je 0x4631ab
mov byte [esp + 0xc], bl
cmp edi, ebp
jb 0x463120
cmp byte [esp + 0x28], bl
je 0x4631c4
mov eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov eax, dword [esp + 0x20]
pop edi
pop ebp
mov dword [eax], ebx
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x20]
pop edi
pop ebp
mov dword [eax], 3
pop ebx
add esp, 0x10
ret 0x10
Function at 0x463260
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi], vtable.FileInStream.0
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], ebx
push eax
mov dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
je 0x463311
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], ebx
call edi
mov edx, dword [esp + 0xc]
xor ecx, ecx
xor ebp, ebp
or ecx, eax
or edx, ebp
mov dword [esp + 0x10], edx
jl 0x4632e7
jg 0x4632cd
cmp ecx, 0x7fffffff
jbe 0x4632e7
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov dword [esi + 0x10], 0xffffffff
mov eax, esi
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0x10]
push ebx
push ecx
call edi
cmp eax, 1
jb 0x46330f
cmp eax, 0xffffffff
mov byte [esi + 0xc], 1
jbe 0x4632ff
or eax, 0xffffffff
mov edx, dword [esi + 0x10]
push ebx
push ebx
push ebx
push edx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop ebp
mov eax, esi
pop ebx
add esp, 8
ret

Function at 0x463410
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x463447
mov eax, dword [esi + 8]
test eax, eax
je 0x463447
mov edx, dword [esp + 0xc]
push 0
push edx
push eax
mov eax, dword [esi + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x463447
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 8]
mov dword [edx], ecx
mov al, 1
pop esi
ret 8
xor al, al
pop esi
ret 8

Function at 0x463450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4729b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00463ee0
mov esi, dword [esp + 0x2c]
push eax
add esi, 0x10
mov dword [esp + 0x28], 0
call fcn.00464360
lea esi, [esp + 8]
call fcn.00462380
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 8
Function at 0x463790
Capabilities:
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x472ca0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x4fbd60]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fbd60
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0
mov eax, dword [0x4fbd60]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fbd60
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x2c]
add ebx, 0x10
mov byte [esp + 0x24], 1
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x463805
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebx + 8]
cmp dword [ebx + 4], ebp
jbe 0x463813
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x46381b
cmp ebx, ebx
je 0x463821
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, ebp
je 0x4638ab
test ebx, ebx
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x463835
call ebp
cmp esi, dword [ebx + 8]
jb 0x46383c
call ebp
cmp dword [esi], 0
jne 0x46389c
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x46385c
push 1
push 0x4ece54
lea ecx, [esp + 0x1c]
push ecx
call fcn.00464510
cmp esi, dword [ebx + 8]
jb 0x463863
call ebp
cmp esi, dword [ebx + 8]
mov edi, dword [esi + 8]
jb 0x463873
call ebp
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
push edi
push edx
push 0x4ece58
lea edi, [esp + 0x24]
call fcn.00465680
mov edi, dword [esp + 0x24]
mov eax, dword [edi - 0xc]
add esp, 0xc
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.00464510
cmp esi, dword [ebx + 8]
jb 0x4638a3
call ebp
add esi, 0x14
jmp 0x463805
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
mov edx, dword [esp + 0x34]
jne 0x4638d5
push eax
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, dword [esp + 0x30]
mov dword [esi], 0
jmp 0x4638e6
mov ecx, dword [esp + 0x30]
push 1
push ecx
push edx
call fcn.00462ec0
mov esi, dword [esp + 0x30]
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463907
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46392b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x463950
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
cmp byte [ebp + 0xc], al
push esi
push edi
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
je 0x463a3d
mov esi, dword [ebp + 0x14]
cmp esi, dword [ebp + 0x18]
lea ebx, [ebp + 0x10]
jbe 0x463980
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ebx, [ebx]
mov edi, dword [ebp + 0x18]
cmp dword [ebp + 0x14], edi
jbe 0x46398e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x463999
lea eax, [ebp + 0x10]
cmp ebx, eax
je 0x46399f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x463a3d
test ebx, ebx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x4639b3
call edi
cmp esi, dword [ebx + 8]
jb 0x4639ba
call edi
cmp dword [esi], 1
jne 0x463a25
cmp esi, dword [ebx + 8]
jb 0x4639c6
call edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463a34
cmp esi, dword [ebx + 8]
jb 0x4639db
call edi
mov eax, dword [esi + 8]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x463a34
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x14]
xor edx, edx
xor edi, edi
or edx, eax
or ecx, edi
add dword [ebp + 0x30], edx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
adc dword [ebp + 0x34], ecx
cmp esi, dword [ebx + 8]
jb 0x463a2c
call edi
add esi, 0x14
jmp 0x463980
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
Function at 0x463ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4727fc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
mov esi, dword [esp + 0x2c]
lea eax, [esi + 4]
push eax
mov ecx, edi
mov dword [esi], 0
call fcn.00464170
lea ecx, [esi + 8]
push ecx
mov ecx, ebx
mov dword [esp + 0x28], 0
call fcn.00464170
mov byte [esp + 0x24], 1
mov edx, dword [0x4fbd60]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fbd60
lea ebp, [esi + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x24], 2
mov edx, dword [0x4fbd60]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fbd60
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x24], 3
mov ecx, dword [esp + 0x30]
mov byte [ecx], 1
mov edx, dword [0x4fbd60]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fbd60
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x24], 4
mov edx, dword [0x4fbd60]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fbd60
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
mov ecx, edi
mov byte [esp + 0x28], 5
call fcn.00462710
mov edx, dword [esp + 0x18]
push edx
push str.Content_Disposition:_form_data__name__s_
lea edi, [esp + 0x3c]
call fcn.00465660
lea eax, [esp + 0x24]
push eax
mov eax, ebp
mov ecx, ebx
call fcn.00462710
add esp, 0x10
push 4
push str._r_n_r_n
mov ecx, edi
push ecx
call fcn.00464080
mov ebx, dword [esp + 0x30]
test ebx, ebx
jne 0x463fff
xor eax, eax
jmp 0x46400f
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x464004
sub eax, edx
mov edi, eax
push ebx
lea eax, [esi + 0x10]
call fcn.00464fa0
mov byte [esp + 0x24], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46403f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x24], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464060
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x466050
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
push esi
push 0
mov esi, eax
mov eax, dword [esp + 0x20]
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4660f6
call fcn.00465ff0
test eax, eax
jne 0x4660f6
mov eax, 1
test byte [0x503544], al
jne 0x4660c5
or dword [0x503544], eax
push 0x4732e0
mov dword [0x503520], 0x4e7bc8
mov dword [0x503524], 0xffffffff
call fcn.0046d920
add esp, 4
mov esi, dword [0x503520]
push 0x76
mov ecx, str.d:workDDCDDCIncludeDiskIO.h
add esi, 8
call fcn.00465f20
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x503520
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x200
push edx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4660ef
test eax, eax
je 0x4660ef
test ecx, 0x1ff
jne 0x4660ef
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x4674a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x467544
call fcn.00467440
test eax, eax
jne 0x467544
mov eax, 1
test byte [0x503544], al
jne 0x467513
or dword [0x503544], eax
push 0x4732e0
mov dword [0x503520], 0x4e7bc8
mov dword [0x503524], 0xffffffff
call fcn.0046d920
add esp, 4
mov esi, dword [0x503520]
push 0x76
mov ecx, str.d:workDDCDDCIncludeDiskIO.h
add esi, 8
call fcn.00467370
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x503520
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x467577
test ecx, ecx
je 0x46753d
test eax, eax
je 0x46753d
test ecx, 0x1ff
jne 0x46753d
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x468ae0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, eax
call fcn.0044f6e0
mov esi, eax
cmp esi, 0xffffffff
jne 0x468b5b
mov eax, 1
test byte [0x503544], al
jne 0x468b25
or dword [0x503544], eax
push 0x4732e0
mov dword [0x503520], 0x4e7bc8
mov dword [0x503524], esi
call fcn.0046d920
add esp, 4
mov esi, dword [0x503520]
push 0x1d2
mov ecx, str..ldmio.cpp
add esi, 8
call fcn.00467370
push eax
mov eax, dword [esi]
push str._s:_Open_disk__d_failed.
push 0x503520
call eax
add esp, 0x10
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
push 8
lea edx, [esp + 0x24]
push edx
push eax
push eax
push 0x7405c
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call edi
test eax, eax
jne 0x468ba1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
add eax, 0x1ff
push 0x200
adc ecx, 0
push ecx
push eax
call sub.ntdll.dll__alldiv
mov ebp, eax
xor eax, eax
push eax
mov ebx, edx
lea edx, [esp + 0x18]
push edx
push 0x18
lea ecx, [esp + 0x2c]
push ecx
push eax
push eax
push 0x70000
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x34], eax
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x468c28
mov eax, dword [esp + 0x30]
mul dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
cmp edx, ebx
jb 0x468c28
ja 0x468c2c
cmp eax, ebp
ja 0x468c2c
mov eax, ebp
mov edx, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x46d6fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f8028]
jne 0x46d707
repz ret
jmp fcn.0046dc74

Function at 0x46e2d7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4f8028]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046e216
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 sub.ntdll.dll_memset
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 0x46e326
cmp dword [ebp - 0x1c], 5
jb 0x46e33e
jmp 0x46e33a
cmp dword [ebp - 0x10], 1
jne 0x46e33e
cmp dword [ebp - 0x1c], 4
ja 0x46e33a
jne 0x46e33e
cmp dword [ebp - 0x18], 0
jbe 0x46e33e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x474b88
call fcn.0046e0c9
test eax, eax
jge 0x46e35f
mov byte [0x4fc478], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046d6fd
add ebp, 0x78
leave
ret
Function at 0x402b7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4292b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402bcb
cmp dword [ebp + 0x10], ebx
jne 0x402c02
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b7a
test eax, eax
jne 0x402bdd
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402bb2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004062f6
cmp eax, ebx
je 0x402c15
push ebx
push dword [0x4292b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4292b0], ebx
jne 0x402c0b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c0b
jmp 0x402c0e
Function at 0x403062
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x40308e
mov ecx, dword [0x429258]
push esi
add eax, ecx
push esi
push eax
mov dword [0x417e94], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040317d
cmp eax, esi
jl 0x403177
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.00405c7b
test eax, eax
je 0x403163
push dword [ebp + 8]
add dword [0x417e94], 4
call fcn.0040317d
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x403177
cmp dword [ebp + 0x10], esi
jne 0x40313f
cmp dword [ebp + 8], esi
jle 0x403174
mov esi, 0x413e90
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x4030f4
mov edi, 0x4000
push edi
push esi
push dword [0x40901c]
mov dword [ebp - 4], edi
call fcn.00405c7b
test eax, eax
je 0x403163
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40313b
cmp dword [ebp + 0x14], edi
jne 0x40313b
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x417e94], eax
cmp dword [ebp + 8], 0
jg 0x4030e3
jmp 0x403174
push 0xfffffffffffffffe
jmp 0x403165
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40314a
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403168
push 0xfffffffffffffffd
pop eax
jmp 0x403177
mov eax, dword [ebp - 4]
add dword [0x417e94], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x40317d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417e94]
sub esi, dword [0x40be00]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42920c], eax
jle 0x4032e7
push dword [0x41fea4]
call fcn.0040330f
push ebx
push ebx
push dword [0x40be00]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41fea0], esi
mov dword [0x417e90], ebx
mov ebp, 0x40be90
mov eax, dword [0x417e98]
mov edi, 0x4000
sub eax, dword [0x41fea4]
cmp eax, edi
jg 0x4031f2
mov edi, eax
mov esi, 0x413e90
push edi
push esi
call fcn.004032f9
test eax, eax
je 0x4032d9
add dword [0x41fea4], edi
mov dword [0x40be20], esi
mov dword [0x40be24], edi
cmp dword [0x429210], ebx
je 0x403249
cmp dword [0x4292a0], ebx
jne 0x403249
mov eax, dword [0x41fea0]
push ebx
sub eax, dword [0x417e94]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40be00]
mov dword [0x417e90], eax
call fcn.00402d1a
pop ecx
mov ecx, 0x40be08
mov dword [0x40be28], ebp
mov dword [0x40be2c], 0x8000
call fcn.00406432
test eax, eax
jl 0x4032e2
mov esi, dword [0x40be28]
sub esi, ebp
je 0x4032a3
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4032de
cmp esi, dword [esp + 0x10]
jne 0x4032de
add dword [0x40be00], esi
cmp dword [0x40be24], ebx
jne 0x403218
jmp 0x4032af
cmp dword [0x40be24], ebx
jne 0x4032e2
cmp edi, ebx
je 0x4032e2
mov eax, dword [0x417e94]
mov ecx, eax
sub ecx, dword [0x40be00]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4031dc
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4032e7
or eax, 0xffffffff
jmp 0x4032f1
push 0xfffffffffffffffe
jmp 0x4032e4
push 0xfffffffffffffffd
pop eax
jmp 0x4032f1
push 1
call fcn.00402d1a
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x405703
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4256f0], 0x44
push eax
xor eax, eax
push 0x4256f0
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405742
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4057cc
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405bd3
mov edi, eax
cmp edi, 0xffffffff
je 0x40580d
test byte [esp + 0x10], 1
push esi
je 0x4057ef
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4057f5
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4057fe
xor eax, eax
inc eax
jmp 0x40580f
test byte [esp + 0x10], 4
jne 0x40580d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8