joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40becc
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x484fc7
call fcn.0048062c
push dword [ebp + 8]
lea edi, [ebp - 0x10]
call fcn.00408185
pop ecx
and dword [ebp - 4], 0
mov ebx, dword [ebp - 0x10]
push ebx
push str.KsapiHelper::UnzipFile_file:_s
mov esi, 0x4b4d74
call fcn.00411a60
pop ecx
pop ecx
mov eax, edi
push eax
call fcn.00414fc2
test eax, eax
jne 0x40bf24
push str.KsapiHelper::UnzipFile_can_not_use_ksapi
call fcn.00411a60
pop ecx
lea eax, [ebx - 0x10]
call fcn.0040214e
xor eax, eax
call fcn.00480704
ret
push 2
push 3
lea eax, [ebp - 0x10]
push eax
call fcn.00415095
test eax, eax
je 0x40bf3c
push str.KsapiHelper::UnzipFile_only_try_once
jmp 0x40bf0e
mov eax, dword [0x4b457c]
mov ecx, 0x4b457c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str._s.ksapihelper
push eax
mov byte [ebp - 4], 1
call fcn.00404e7f
mov edi, dword [ebp - 0x14]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 0xc]
push edi
call fcn.00407902
test eax, eax
pop ecx
pop ecx
jne 0x40bfab
push str.KsapiHelper::UnzipFile_unzip_failed
call fcn.00411a60
xor esi, esi
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi - 0x10]
call fcn.0040214e
lea eax, [ebx - 0x10]
call fcn.0040214e
mov eax, esi
jmp 0x40bf1e
push dword [ebp + 8]
push edi
call fcn.00414f5e
mov ebx, eax
push ebx
push 2
push 3
lea eax, [ebp - 0x10]
push eax
call fcn.00414feb
push ebx
push str.KsapiHelper::UnzipFile_SafeR3_CopyFile_return__d
call fcn.00411a60
mov esi, ebx
mov ebx, dword [ebp - 0x10]
pop ecx
jmp 0x40bf8c

Function at 0x40c081
Capabilities:
Move file

Disassembly:
push 8
mov eax, 0x4859d2
call fcn.0048062c
push dword [ebp + 8]
mov esi, 0x4b4d74
push str.KsapiHelper::MoveFileEx_file:_s
call fcn.00411a60
pop ecx
pop ecx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402357
lea eax, [ebp - 0x10]
push eax
call fcn.00414fc2
mov ebx, eax
mov eax, dword [ebp - 0x10]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040214e
test bl, bl
je 0x40c0db
push str.KsapiHelper::MoveFileEx_can_not_use_ksapi
call fcn.00411a60
xor eax, eax
jmp 0x40c135
push dword [ebp + 0x14]
mov eax, dword [0x4b4c04]
test eax, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jne 0x40c0f5
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40c0f7
call eax
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402357
and dword [ebp - 4], 0
push edi
push 4
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
call fcn.00414feb
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040214e
push edi
push str.KsapiHelper::CopyFile_SafeR3_MoveFileEx_return__d
call fcn.00411a60
pop ecx
mov eax, edi
pop ecx
call fcn.00480704
ret
Function at 0x40c13c
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x484f79
call fcn.0048062c
push dword [ebp + 8]
lea edi, [ebp - 0x10]
call fcn.00408185
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, dword [ebp - 0x10]
push ebx
push str.KsapiHelper::DeleteFile_file:_s
mov esi, 0x4b4d74
call fcn.00411a60
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00414fc2
test eax, eax
jne 0x40c196
push str.KsapiHelper::DeleteFile_can_not_use_ksapi
call fcn.00411a60
pop ecx
lea eax, [ebx - 0x10]
call fcn.0040214e
xor eax, eax
call fcn.00480704
ret
push 5
push 2
lea eax, [ebp - 0x10]
push eax
call fcn.00415095
test eax, eax
je 0x40c1be
push str.KsapiHelper::DeleteFile_only_try_once
call fcn.00411a60
pop ecx
lea eax, [ebx - 0x10]
call fcn.0040214e
mov eax, edi
jmp 0x40c190
mov eax, dword [0x4b4ac0]
cmp eax, edi
push dword [ebp + 8]
jne 0x40c1d2
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c1d4
call eax
mov edi, eax
push edi
push 5
push 2
lea eax, [ebp - 0x10]
push eax
call fcn.00414feb
push edi
push str.KsapiHelper::DeleteFile_SafeR3_DeleteFile_return__d
call fcn.00411a60
pop ecx
jmp 0x40c1b1
Function at 0x40cb0f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x485d6f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4b2068]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4b457c]
mov ecx, 0x4b457c
xor edi, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push dword [ebp + 0xc]
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], edi
or dword [esp + 0x18], 0xffffffff
push eax
call fcn.0040636f
mov byte [esp + 0x38], 1
cmp dword [esi + 0xc8], edi
mov dword [esp + 0x10], edi
jle 0x40cbbd
cmp dword [esp + 0x20], 0
jne 0x40cb95
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040cefe
jmp 0x40cba7
push dword [ebp + 8]
lea ebx, [esp + 0x18]
lea edi, [esp + 0x20]
mov ecx, esi
call fcn.0040cfb1
mov edi, eax
test edi, edi
jne 0x40cbbd
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0xc8]
jl 0x40cb7a
lea ecx, [esp + 0x1c]
call fcn.004063b1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40ee71
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x484e7e
call fcn.0048062c
mov eax, dword [0x4b457c]
mov ecx, 0x4b457c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x65
pop ecx
lea esi, [ebp - 0x10]
call fcn.0040e43b
mov esi, eax
test esi, esi
je 0x40ef3a
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
push eax
call fcn.00402357
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x10]
push ecx
lea eax, [edi - 0x10]
mov dword [ebp + 8], esp
mov esi, esp
call fcn.00402441
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0040eddd
mov esi, eax
test esi, esi
je 0x40ef3d
mov eax, dword [edi - 0xc]
mov ecx, dword [0x4b5130]
cmp eax, dword [ecx - 0xc]
jl 0x40ef3d
lea eax, [ebp - 0x10]
mov edi, 0x4b5130
call fcn.004024a3
mov ebx, str.product_tag_cmpc_ch.tag
lea eax, [ebp - 0x10]
call fcn.0040ef59
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ef2e
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40ef2e
mov dword [0x4b512c], 0x12
jmp 0x40ef3d
mov dword [0x4b512c], 0x65
jmp 0x40ef3d
mov edi, dword [ebp - 0x10]
lea eax, [edi - 0x10]
call fcn.0040214e
mov eax, esi
call fcn.00480704
ret 4
Function at 0x40fb06
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push connect
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40fb9e
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x40fb94
cmp edi, 0x200000
ja 0x40fb94
lea eax, [edi + 2]
push esi
push eax
call fcn.0047e92c
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40fb93
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x40fb93
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc
Function at 0x410518
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x481fa5
call fcn.00480695
mov eax, dword [0x4b457c]
xor ebx, ebx
mov esi, 0x4b457c
mov ecx, esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x4106b5
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.004106d6
mov eax, dword [ebp + 0x10]
dec eax
je 0x41063d
dec eax
je 0x4105dc
dec eax
jne 0x41068a
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
mov byte [ebp - 0x18], 0xff
mov byte [ebp - 0x17], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4106ac
cmp dword [ebp - 0x1c], 2
jne 0x4106ac
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x24], eax
add esi, esi
jmp 0x41068a
push ebx
lea eax, [ebp - 0x1c]
push eax
push 3
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
mov byte [ebp - 0x20], 0xef
mov byte [ebp - 0x1f], 0xbb
mov byte [ebp - 0x1e], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4106ac
cmp dword [ebp - 0x1c], 3
jne 0x4106ac
call dword [0x4b2024]
cmp dword [ebp - 0x14], ebx
je 0x41065b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41065b
lea edi, [eax + eax]
mov eax, edi
call fcn.00480760
mov esi, esp
push 0xfde9
jmp 0x41066e
call dword [0x4b2024]
cmp dword [ebp - 0x14], ebx
mov esi, eax
je 0x41065b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41065f
xor eax, eax
jmp 0x410677
lea edi, [eax + eax]
mov eax, edi
call fcn.00480760
mov eax, esp
push esi
mov esi, eax
push edi
push dword [ebp - 0x14]
call fcn.0040f154
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041086c
mov edi, dword [ebp - 0x18]
mov esi, dword [edi - 0xc]
mov dword [ebp - 0x24], edi
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4106ac
cmp dword [ebp - 0x1c], esi
jne 0x4106ac
mov dword [ebp - 0x2c], 1
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
call fcn.0040214e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0x3c]
call fcn.00480718
ret 0xc
Function at 0x4118e8
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xec
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x74], bl
lea edi, [ebp - 0x73]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x60], ebx
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
push 0xc6
stosd dword es:[edi], eax
lea eax, [ebp - 0x52]
push ebx
push eax
mov esi, ecx
mov word [ebp - 0x54], bx
call sub.MSVCR80.dll_memset
push str.Chinese_simplified
push ebx
call dword [sym.imp.MSVCR80.dll_setlocale]
add esp, 0x14
push esi
push 0x4b4d88
call fcn.00402394
call fcn.00411dba
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x74]
push 0x4b4d8c
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x54]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.004120b1
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push edi
push edi
lea eax, [ebp - 0x60]
push eax
call esi
push ebx
push ebx
push edi
push ebx
mov dword [0x4b4d7c], eax
call esi
cmp dword [0x4b4d7c], ebx
mov dword [0x4b4d80], eax
je 0x4119ec
cmp eax, ebx
je 0x4119ec
push ebx
push ebx
push 0x4b4d74
push 0x411b9e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [0x4b4d84], eax
mov eax, ecx
jmp 0x4119ee
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f7b2
add ebp, 0x78
leave
ret

Function at 0x411d71
Capabilities:
Get file size

Disassembly:
push esi
push 0
push 0x80
push 3
push 0
push 3
push connect
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411d99
xor eax, eax
jmp 0x411db6
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411dac
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x411dba
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push 4
mov eax, 0x481f3f
call fcn.0048062c
xor esi, esi
push esi
push dword [0x4b4d88]
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
je 0x411de2
call fcn.00411e50
jmp 0x411e47
push dword [0x4b4d88]
call fcn.00411d71
cmp eax, 0x100000
jb 0x411e47
mov eax, dword [0x4b4d88]
add eax, 0xfffffff0
call fcn.00402441
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.00411e92
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x4b4d88]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call fcn.00411e50
lea eax, [edi - 0x10]
call fcn.0040214e
xor eax, eax
inc eax
call fcn.00480704
ret

Function at 0x411e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x491b1c
push dword [0x4b4d88]
call dword [sym.imp.MSVCR80.dll__wfopen]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x411e8f
push esi
push 2
lea eax, [ebp - 4]
push 1
push eax
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], 0xfe
call dword [sym.imp.MSVCR80.dll_fwrite]
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x14
pop esi
leave
ret

Function at 0x41292c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp ecx, ebx
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], bl
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
je 0x412a18
cmp word [ecx], bx
je 0x412a18
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x14], edi
je 0x412a18
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x412a0e
push ebx
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x412a0e
lea ecx, [ebp - 0xc]
call fcn.00412a5e
test eax, eax
je 0x412a0e
add esi, 0xfffffffc
lea eax, [esi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x412a0e
mov eax, dword [ebp - 0x1c]
push ebx
push ebx
push 4
push dword [ebp - 0x14]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x412a0e
mov edx, dword [ebp - 0x10]
call fcn.00412a29
test eax, eax
jge 0x412a0e
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047f7b2
leave
ret
Function at 0x412a29
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x412a58
test esi, esi
jbe 0x412a58
mov ecx, esi
shr ecx, 2
push 0
pop eax
je 0x412a47
xor dword [edx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, ecx
jb 0x412a3b
shl eax, 2
jmp 0x412a51
xor byte [eax + edx], 0xd8
inc eax
cmp eax, esi
jb 0x412a4c
xor eax, eax
ret
mov eax, 0x80004005
ret

Function at 0x412a71
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 1
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412ac7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.ProxyEnable
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412ac7
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], esi
je 0x412ad5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x412adb
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp + 0x388], eax
push ebx
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x77]
push ebx
push eax
xor edi, edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x78], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412b62
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push str.ProxyServer
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412b62
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
inc edi
cmp dword [ebp - 0x7c], ebx
je 0x412b70
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x388]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0047f7b2
add ebp, 0x38c
leave
ret
Function at 0x4135da
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, eax
push dword [ebx + 0x14]
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413771
mov eax, dword [ebx + 0x14]
push esi
push 0x80
push 3
push esi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x413771
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0xc], esi
mov edi, eax
jne 0x413759
cmp edi, 0x200000
ja 0x413759
cmp edi, esi
je 0x413759
cmp edi, 0xffffffff
je 0x413759
cmp dword [ebx + 0x18], esi
je 0x4136c2
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047e92c
cmp eax, esi
mov ebx, dword [ebp + 8]
pop ecx
mov dword [ebx], eax
je 0x413759
lea ecx, [edi + edi + 2]
push ecx
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push esi
push 2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x413759
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebx]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x41374e
lea ebx, [edi + 1]
push ebx
call fcn.0047e92c
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
je 0x413759
push ebx
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413759
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
push esi
call ebx
mov edi, eax
cmp edi, esi
je 0x413759
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047e92c
cmp eax, esi
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x413759
lea ecx, [edi + edi + 2]
push ecx
push esi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
push edi
push dword [eax]
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
push esi
call ebx
test eax, eax
je 0x413759
mov dword [ebp - 0x14], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
pop edi
je 0x413771
push dword [ebp - 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x14]
pop esi
pop ebx
leave
ret 4