joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496268
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x10
mov eax, 0x50dec8
call fcn.004d0de3
mov edi, edx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], 0x527e68
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4962f3
cmp eax, 0x400
jae 0x4962ee
mov byte [ebp + eax], bl
mov ecx, edi
lea eax, [ebp]
push eax
call fcn.004774b0
jmp 0x4962ba
call fcn.004d0a67
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x496323
add eax, 0xfffffffe
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040666a
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0044d0c3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x527e68
test esi, esi
je 0x49633c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.004d0217
lea esp, [ebp + 0x404]
pop ebp
ret

Function at 0x4969a6
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0xa8
lea ebp, [esp - 4]
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push 8
mov eax, 0x50dfbe
call fcn.004d0de3
mov esi, edx
mov edi, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x9c], str.http:__www.google.com
mov dword [ebp + 0xa0], str.http:__www.yahoo.com
mov dword [ebp + 0xa4], str.http:__www.example.com
call fcn.0040c77f
xor ebx, ebx
lea ecx, [ebp - 0x10]
push str.tin9999.tmp
mov dword [ebp - 4], ebx
call fcn.0040d264
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00475500
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040ca45
push esi
push edi
lea ecx, [ebp]
call fcn.00496b5b
mov byte [ebp - 4], 2
lea edi, [ebp + 0x9c]
mov dword [ebp + 0x78], ebx
push dword [edi]
lea ecx, [ebp - 0x10]
call fcn.0040d264
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00497163
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov esi, eax
call fcn.0040ca45
test esi, esi
je 0x496a76
add edi, 4
lea eax, [ebp + 0xa8]
cmp edi, eax
jne 0x496a37
jmp 0x496a78
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.00488c13
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ca45
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.004d0217
lea esp, [ebp + 0xac]
pop ebp
ret
Function at 0x497760
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x50e1c1
call fcn.004d0de3
mov eax, dword [ebp + 8]
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push ecx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x18], 0x527e68
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x4977ad
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4977ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4978e3
and dword [ebp - 0x10], 0
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.0048fb3d
mov esi, dword [ebp - 0x10]
test al, al
jne 0x4977dd
push 8
pop edi
jmp 0x4978d4
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x497801
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4978d4
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.0040cf1f
mov eax, dword [ebp + 8]
test eax, eax
je 0x4978d2
mov byte [eax + esi], 0
mov eax, dword [ebp + 0xc]
push str.utf_8
push dword [eax]
call fcn.004da22d
pop ecx
pop ecx
test eax, eax
jne 0x497839
push 0xfde9
jmp 0x4978c8
mov eax, dword [ebp + 0xc]
push str.utf_16
push dword [eax]
call fcn.004da22d
pop ecx
pop ecx
test eax, eax
jne 0x49786f
mov edi, dword [ebp + 8]
shr edi, 1
call fcn.0040cc51
push eax
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.00406935
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 3
jmp 0x4978b2
mov eax, dword [ebp + 0xc]
push str.ISO_8859_1
push dword [eax]
call fcn.004da22d
pop ecx
pop ecx
test eax, eax
jne 0x49788b
push 0x6faf
jmp 0x4978c8
mov eax, dword [ebp + 0xc]
push str.US_ASCII
push dword [eax]
call fcn.004da22d
pop ecx
pop ecx
test eax, eax
jne 0x4978c6
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push esi
call fcn.004993d5
mov byte [ebp - 4], 4
mov ecx, edi
push eax
call fcn.0044d0c3
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040ca45
jmp 0x4978d2
push 0
mov edx, edi
mov ecx, esi
call fcn.00472740
pop ecx
xor edi, edi
push esi
mov byte [ebp - 4], 0
call fcn.004d0936
and dword [ebp - 0x10], 0
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x527e68
test ebx, ebx
je 0x4978fd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
mov eax, edi
call fcn.004d0dac
ret 0xc
Function at 0x497da4
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x68]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], 0
push dword [esp + 0x20]
mov dword [edi + 0x34], 3
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x497e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x497e44
jmp 0x497e1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x497e20
push ebx
lea ecx, [edi + 0xc]
call fcn.004a09aa
lea ecx, [edi + 0xc]
call fcn.004a0993
test al, al
jne 0x497e32
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x497dee
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x497e44
test eax, eax
jle 0x497e42
mov dword [ebp], eax
jmp 0x497e42
mov eax, 0xe0000008
jmp 0x497e44
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x497e4b
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x68]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x18]
xor eax, eax
push eax
push eax
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], al
mov dword [edi + 0x34], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x497edb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x497ee6
jmp 0x497ebd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x497ec2
push ebx
lea ecx, [edi + 0xc]
call fcn.004a09aa
lea ecx, [edi + 0xc]
call fcn.004a0993
test al, al
jne 0x497ed4
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x497e90
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x497ee6
test eax, eax
jle 0x497ee4
mov dword [ebp], eax
jmp 0x497ee4
mov eax, 0xe0000008
jmp 0x497ee6
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4980ea
Capabilities:
Connect network resource

Disassembly:
push 0x3c
mov eax, 0x50e2c8
call fcn.004d0de3
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
call fcn.0040c77f
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040c77f
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
mov esi, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp + 0x10]
call fcn.00474870
mov byte [ebp - 4], 2
and dword [edi + 8], esi
and dword [edi + 4], esi
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x49813f
mov eax, dword [ecx]
call dword [eax]
test ebx, ebx
je 0x498198
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
push 0x20
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004d39c0
mov eax, dword [ebp - 0x18]
xor ecx, ecx
and dword [ebp - 0x38], 0
inc ecx
add esp, 0xc
mov dword [ebp - 0x44], ecx
cmp dword [eax - 4], ecx
jle 0x49817c
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040cf6c
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x2c], 0
push 0
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
jne 0x4981b5
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
call fcn.00475ea0
mov esi, eax
pop ecx
test esi, esi
je 0x498261
cmp esi, 0x52e
je 0x4981ce
cmp esi, 0x56
je 0x4981ce
cmp esi, 0x89a
jne 0x498269
push str.Local_Network_Server
lea ecx, [ebp + 0x10]
call fcn.0040d264
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040c77f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
push dword [ebp + 8]
push 0
call fcn.0049921f
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
mov bl, al
call fcn.0040ca45
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040ca45
test bl, bl
je 0x498269
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 4], 1
jle 0x49823b
push dword [ebx - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040cf6c
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp dword [eax - 4], 1
jle 0x49813f
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040cf6c
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
jmp 0x49813f
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040ca45
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ca45
mov eax, esi
call fcn.004d0dac
ret 0x18
Function at 0x498eb5
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004d39c0
push esi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004d39c0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
add esp, 0x18
mov dword [ebp - 0x3c], esi
push ecx
push edi
push edi
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop edi
pop esi
test eax, eax
jne 0x498efd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x498f07
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4998e4
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x50e567
call fcn.004d0de3
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x527e68
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x49995e
push ebx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], 0xfeff
push eax
push 2
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49995e
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push ebx
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49995e
mov bl, 1
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x527e68
test esi, esi
je 0x499978
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
mov al, bl
call fcn.004d0dac
ret 8

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

Disassembly:
push 0x10
mov eax, 0x50e592
call fcn.004d0de3
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], 0x527e68
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x499a3b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x499a39
xor esi, esi
mov dword [ebp + 8], esi
push ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0048fb3d
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x499a28
mov edx, dword [ebp - 0x10]
mov ecx, esi
call fcn.004cb530
cmp eax, 4
jne 0x499a14
lea eax, [ebx - 2]
shr eax, 1
push eax
lea eax, [esi + 2]
push eax
jmp 0x499a1d
cmp eax, 5
jne 0x499a28
shr ebx, 1
push ebx
push esi
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0040d1b7
xor ebx, ebx
push esi
mov byte [ebp - 4], bl
call fcn.004d0936
pop ecx
mov dword [ebp + 8], ebx
jmp 0x499a3b
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x527e68
test edi, edi
je 0x499a54
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
call fcn.004d0dac
ret 4
Function at 0x499a5c
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x50e567
call fcn.004d0de3
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x527e68
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x499aab
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x499ab5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x499ab7
mov edi, ebx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x527e68
test esi, esi
je 0x499ad0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
mov eax, edi
call fcn.004d0dac
ret 4

Function at 0x499ada
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x50e5bd
call fcn.004d0de3
mov ebx, ecx
lea ecx, [ebp - 0x14]
call fcn.0040c77f
and dword [ebp - 4], 0
mov edi, 0x100
push 0x200
call fcn.004d093b
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebx + 4]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xff
jne 0x499b7c
push esi
add edi, edi
mov byte [ebp - 4], 0
call fcn.004d0936
and dword [ebp - 0x10], 0
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d093b
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebx + 4]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [edi - 1]
cmp eax, ecx
je 0x499b2c
mov ecx, dword [ebp + 0x10]
push esi
call fcn.0040d23c
push esi
mov byte [ebp - 4], 0
call fcn.004d0936
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x14]
call fcn.0040ca45
call fcn.004d0dac
ret 0xc
Function at 0x499ba8
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x50e5e8
call fcn.004d0de3
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x200
mov esi, 0x100
call fcn.004d093b
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
push dword [ebx + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
cmp ebx, 0xfe
jne 0x499c2f
or dword [ebp - 4], 0xffffffff
add esi, esi
push edi
call fcn.004d0936
and dword [ebp - 0x14], 0
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d093b
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea eax, [esi - 2]
cmp ebx, eax
je 0x499be7
mov ecx, dword [ebp + 8]
call fcn.0045265f
lea ecx, [ebp - 0x10]
call fcn.0040c77f
mov byte [ebp - 4], 1
xor esi, esi
movzx eax, word [edi + esi*2]
test ax, ax
je 0x499c59
push eax
lea ecx, [ebp - 0x10]
call fcn.00472e50
jmp 0x499c76
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x499c6e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0046c410
lea ecx, [ebp - 0x10]
call fcn.0040cf1f
inc esi
cmp esi, ebx
jbe 0x499c45
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
push edi
call fcn.004d0936
and dword [ebp - 0x14], 0
pop ecx
call fcn.004d0dac
ret 4

Function at 0x499d95
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bc51
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x570074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x20]
mov dword [esi], 0x5383b0
cmp dword [eax - 0xc], 0
je 0x499dd1
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x34]
call fcn.0040ca45
lea ecx, [esi + 0x30]
call fcn.0040ca45
lea ecx, [esi + 0x28]
call fcn.0040ca45
lea ecx, [esi + 0x24]
call fcn.0040ca45
lea ecx, [esi + 0x20]
call fcn.0040ca45
lea ecx, [esi + 8]
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499eee
Capabilities:
Copy file

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0xc
mov eax, 0x50e6bb
call fcn.004d0de3
mov esi, ecx
push 0x53809c
lea ecx, [ebp - 0x10]
call fcn.0040d264
and dword [ebp - 4], 0
lea edi, [esi + 0x20]
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.00475500
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ca45
lea ebx, [esi + 8]
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.00492d97
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x499f74
push 0
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
jmp 0x49a017
push 0x570e30
push esi
lea ecx, [ebp]
call fcn.00496b5b
push edi
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00497163
mov ecx, dword [esi + 4]
mov edi, eax
mov cl, byte [ecx + 0x39]
test cl, cl
je 0x499fa0
xor bl, bl
jmp 0x49a00b
test edi, edi
je 0x49a008
cmp byte [0x5735e0], 0
je 0x49a006
push ecx
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004728f0
pop ecx
mov esi, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040c77f
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov esi, dword [esi]
push str.Downloading_of_updates_failed._Error:
call fcn.0041069b
push esi
lea ecx, [ebp - 0x10]
call fcn.00490d37
push eax
mov ecx, 0x5735ac
call fcn.0049abcf
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0040ca45
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040ca45
test edi, edi
sete bl
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00488c13
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ca45
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004d0217
lea esp, [ebp + 0xa0]
pop ebp
ret
Function at 0x49acff
Capabilities:
Write file on windows

Disassembly:
push 0x214
mov eax, 0x50e93c
call fcn.004d0e17
mov esi, ecx
cmp dword [esi + 0x30], 0
jne 0x49ae91
lea ebx, [esi + 0x24]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x49adad
mov edi, 0x208
lea eax, [ebp - 0x218]
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add eax, eax
cmp eax, edi
jae 0x49ae04
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x218]
push eax
call fcn.004d5c34
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0040d1b7
push 0x2e
push dword [ebx]
call fcn.004d3e4b
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x49ad84
or ecx, 0xffffffff
jmp 0x49ad88
sub ecx, dword [ebx]
sar ecx, 1
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
mov ecx, ebx
call fcn.0046fc50
mov edi, str..log
push edi
call fcn.004d5c34
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.004106c3
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push dword [ebx]
lea edi, [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov ecx, edi
call fcn.0042ce14
cmp dword [esi + 0x30], 0xffffffff
je 0x49ae80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x49ae09
cmp dword [esi + 0x30], 0
je 0x49ae91
push 2
push 0
push 0
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x49ae47
call fcn.004d0a67
test eax, eax
jne 0x49ae80
cmp dword [esi + 0x30], eax
je 0x49ae80
push 2
pop ecx
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x21c], 0xfeff
push eax
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
push eax
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [esi + 0x30], 0
je 0x49ae91
lea eax, [esi + 0x28]
mov ecx, esi
push eax
call fcn.0049ae97
lea ecx, [ebp - 0x21c]
call fcn.0049aec6
and dword [ebp - 4], 0
mov ecx, esi
push eax
call fcn.0049ae97
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040ca45
jmp 0x49ae91
cmp dword [edi + 4], 0
je 0x49ae91
mov ecx, edi
call fcn.00404fb2
and dword [edi + 4], 0
call fcn.004d0dc1
ret

Function at 0x49ae97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
mov esi, ecx
mov edx, dword [eax]
lea eax, [ebp + 8]
push eax
mov eax, dword [edx - 0xc]
add eax, eax
push eax
push edx
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
pop ebp
ret 4