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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x4ed384]
mov ecx, dword [0x4f0980]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
mov ecx, dword [eax]
push esi
xor esi, esi
cmp dword [ecx - 8], esi
mov dword [ebp - 0x46c], esi
jne 0x4a8c87
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.00402eaa
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4a8e15
push eax
call fcn.004013aa
jmp 0x4a8e15
push ebx
push edi
push 0x4d642c
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.00403120
mov eax, dword [ebp - 0x470]
lea ebx, [ebp - 0x468]
mov word [ebp - 0x10], 0x5c
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov word [ebp - 0x218], si
call fcn.00407cb1
jmp 0x4a8dc2
lea esi, [ebp - 0x468]
call fcn.00423e70
test eax, eax
jne 0x4a8db7
lea eax, [ebp - 0x47c]
push eax
mov eax, esi
call fcn.00407c1d
mov edi, eax
lea eax, [ebp + 0xc]
call fcn.00402f73
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4a8d06
push eax
call fcn.004013aa
push 0x2e
lea esi, [ebp + 0xc]
call fcn.00403023
mov ecx, eax
test ecx, ecx
jge 0x4a8d1d
mov eax, 0x4d1350
jmp 0x4a8d3d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 8]
sub eax, ecx
lea ecx, [ebp - 0x478]
push ecx
lea edx, [ebp + 0xc]
call fcn.0044927b
or dword [ebp - 0x46c], 2
mov eax, dword [eax]
push eax
lea edi, [ebp - 0x474]
call fcn.00402f03
test byte [ebp - 0x46c], 2
je 0x4a8d70
mov eax, dword [ebp - 0x478]
and dword [ebp - 0x46c], 0xfffffffd
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4a8d70
push eax
call fcn.004013aa
lea eax, [ebp - 0x474]
call fcn.0040a767
mov esi, dword [eax]
lea eax, [ebp + 0xc]
call fcn.0040a767
push dword [eax]
mov eax, esi
call fcn.004a2e72
test eax, eax
pop ecx
jne 0x4a8e24
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x474]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4a8db7
push eax
call fcn.004013aa
lea eax, [ebp - 0x468]
call fcn.00407d67
test eax, eax
jne 0x4a8cc4
lea eax, [ebp + 0xc]
call fcn.00402f45
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.00402eaa
lea eax, [ebp - 0x468]
call fcn.00407d90
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4a8dff
push eax
call fcn.004013aa
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4a8e13
push eax
call fcn.004013aa
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.004c7b01
leave
ret 0x10
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a8e36
lea eax, [ebp - 0x468]
call fcn.004a52e6
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4a8e48
lea eax, [ebp - 0x468]
call fcn.004a5305
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.00402eaa
mov eax, dword [ebp - 0x474]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4a8ddd
push eax
call fcn.004013aa
jmp 0x4a8ddd
Function at 0x4ac6fe
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test byte [edi + 0x10], 1
push ebx
push esi
jne 0x4ac776
call dword [0x4f09d8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4ac72b
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4ac763
mov esi, dword [edi + 4]
test esi, esi
jne 0x4ac736
xor eax, eax
jmp 0x4ac75c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.004c7d30
mov eax, esp
push dword [ebp - 4]
push ebx
push esi
mov esi, eax
call fcn.004ac67f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4ac776
test al, 1
je 0x4ac772
and dword [edi + 0x10], 0xfffffffb
jmp 0x4ac776
or dword [edi + 0x10], 4
mov eax, dword [edi + 0x10]
lea esp, [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x4affed
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ed384]
and dword [ebp - 0x24], 0
push ebx
push esi
mov dword [ebp - 4], eax
mov esi, ecx
mov eax, dword [esi]
mov ebx, dword [eax - 8]
push edi
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0x18]
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x29
mov byte [ebp - 0xb], 0x25
mov byte [ebp - 0xa], 0x21
mov byte [ebp - 9], 0x24
mov byte [ebp - 8], 0
call fcn.00407656
jmp 0x4b0058
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041a10b
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], ebx
jl 0x4b004b
mov eax, ebx
lea ecx, [ebp - 0x18]
call fcn.0040320d
mov eax, dword [0x4f0980]
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
jne 0x4b0086
lea ecx, [ebp - 0x1c]
jmp 0x4b00ee
mov edx, dword [esi]
lea eax, [ebx - 1]
test eax, eax
jl 0x4b00af
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
sub esi, eax
add ecx, eax
sub edx, dword [ebp - 0x18]
lea esi, [esi + ebx - 1]
lea edi, [eax + 1]
mov al, byte [edx + ecx]
xor al, byte [ecx]
dec ecx
mov byte [esi], al
inc esi
dec edi
jne 0x4b00a3
lea ecx, [ebp - 0x24]
lea eax, [ebx + ebx + 1]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.004031e1
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov edx, ebx
call fcn.0049dca0
mov eax, dword [ebp - 0x24]
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040320d
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea eax, [ebp - 0x1c]
call fcn.00408c0a
mov ecx, eax
mov esi, dword [ebp + 8]
call fcn.00403180
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4b010a
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4b011e
push eax
call fcn.004013aa
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004c7b01
leave
ret
Function at 0x4b012d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ed384]
and dword [ebp - 0x18], 0
push ebx
mov dword [ebp - 4], eax
mov ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax - 8]
cdq
push esi
sub eax, edx
mov esi, eax
push edi
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0x20]
sar esi, 1
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x29
mov byte [ebp - 0xb], 0x25
mov byte [ebp - 0xa], 0x21
mov byte [ebp - 9], 0x24
mov byte [ebp - 8], 0
call fcn.00407656
jmp 0x4b019f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041a10b
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], esi
jl 0x4b0192
mov eax, esi
lea ecx, [ebp - 0x20]
call fcn.0040320d
mov eax, dword [0x4f0980]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 1]
lea ecx, [ebp - 0x1c]
call fcn.004031e1
mov ecx, dword [ebx]
lea edi, [esi - 1]
test edi, edi
mov dword [ebp - 0x24], ecx
jl 0x4b021d
mov ecx, eax
sub ecx, edi
lea ecx, [ecx + esi - 1]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x24]
mov al, byte [eax + edi*2]
call fcn.0049dcfd
mov bl, al
mov eax, dword [ebp - 0x24]
mov al, byte [eax + edi*2 + 1]
call fcn.0049dcfd
test bl, bl
jl 0x4b021d
test al, al
jl 0x4b021d
mov ecx, dword [ebp - 0x18]
shl bl, 4
add bl, al
mov eax, dword [ebp - 0x28]
xor bl, byte [ecx + eax]
dec edi
mov byte [eax], bl
inc eax
test edi, edi
mov dword [ebp - 0x28], eax
jge 0x4b01e3
mov eax, esi
lea ecx, [ebp - 0x1c]
call fcn.0040320d
lea eax, [ebp - 0x18]
push eax
push 0xd
pop eax
lea ecx, [ebp - 0x1c]
call fcn.0041a152
mov eax, dword [eax]
push str.http_3A_2F_2F
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff4
pop ecx
inc bl
cmp eax, dword [0x4f0984]
pop ecx
je 0x4b0262
push eax
call fcn.004013aa
test bl, bl
je 0x4b029b
push ecx
lea ecx, [ebp - 0x1c]
mov esi, esp
mov dword [ebp - 0x18], esp
call fcn.00403180
lea eax, [ebp - 0x18]
call fcn.004aff79
mov edi, eax
pop ecx
lea eax, [ebp - 0x1c]
call fcn.0040a7a8
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4b029b
push eax
call fcn.004013aa
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00403180
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4b02ba
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4b02ce
push eax
call fcn.004013aa
mov ecx, dword [ebp - 4]
mov eax, esi
call fcn.004c7b01
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b1ff2
Capabilities:
Create directory

Disassembly:
mov eax, 0x4c9a37
call fcn.004c7e20
sub esp, 0x31c
mov eax, dword [0x4ed384]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x4b201b
xor eax, eax
jmp 0x4b217d
test edx, edx
je 0x4b202b
cmp word [edx], 0
je 0x4b202b
push edx
call fcn.00402fb6
push ebx
push esi
push edi
lea eax, [ebp - 0x2c4]
call fcn.004a39d8
and dword [ebp - 4], 0
push 0x4d1280
push 0x4d1278
push 0x4d1274
lea esi, [ebp - 0x328]
call fcn.004a3d56
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 1
call fcn.004a34ad
push 0x4dc018
lea edi, [ebp - 0x2fc]
call fcn.004a3601
push 0xa
lea eax, [ebp - 0x90]
push eax
push 3
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push str.version
mov ebx, edi
call fcn.004a36e8
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.004a34ad
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c4]
push eax
mov ecx, esi
call fcn.004b24e9
mov eax, dword [esi]
lea ecx, [ebp - 0x29c]
push ecx
lea ecx, [ebp - 0x298]
push ecx
push 0x104
xor ebx, ebx
push eax
mov dword [ebp - 0x29c], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x29c]
cmp eax, ebx
je 0x4b210a
mov word [eax], bx
push ebx
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ebx
push ecx
call fcn.00401754
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x2c4]
call fcn.004a3aa7
movzx esi, al
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4b2142
push eax
call fcn.004013aa
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 1
call fcn.004a3650
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], bl
call fcn.0040185b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2c4], 0x4d1010
call fcn.004a3441
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004c7b01
leave
ret 4

Function at 0x4b2844
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x4b2864
cmp word [eax], 0
je 0x4b2864
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b2864
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x4b862d
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x4f2158], ebx
push esi
mov esi, eax
je 0x4b8644
call fcn.004b874f
cmp esi, ebx
je 0x4b8712
cmp dword [esi], 0x18
jne 0x4b8712
push edi
push dword [esi + 8]
lea edi, [ebp - 4]
call fcn.00402f03
mov eax, dword [esi + 4]
cmp eax, ebx
mov edi, dword [ebp - 4]
jne 0x4b8676
push 0x10000000
push ebx
push ebx
push 1
jmp 0x4b86f0
cmp eax, 1
je 0x4b86e8
cmp dword [edi - 8], ebx
je 0x4b86e8
push dword [esi + 0x10]
mov eax, 0x4f3604
call fcn.00402fb6
push dword [esi + 0x14]
mov eax, 0x4f3608
call fcn.00402fb6
push dword [esi + 0xc]
mov eax, dword [0x4f0980]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str.httphttp:___s:_d
push eax
call fcn.00405986
mov esi, dword [ebp - 4]
add esp, 0x10
push 0x10000000
push str._local_
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x4f2158], eax
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x4b86fe
push eax
call fcn.004013aa
jmp 0x4b86fe
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x4f2158], eax
lea eax, [edi - 0xc]
cmp eax, dword [0x4f0984]
pop edi
je 0x4b8728
push eax
call fcn.004013aa
jmp 0x4b8728
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x4f2158], eax
mov eax, dword [0x4f2158]
pop esi
cmp eax, ebx
pop ebx
jne 0x4b8737
xor eax, eax
leave
ret
push 0x4b8305
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret
Function at 0x4b87d3
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x4ed384]
push ebx
push esi
mov esi, ecx
mov dword [ebp + 0x790], eax
mov eax, dword [esi + 0x60]
push edi
xor edi, edi
cmp eax, edi
je 0x4b8984
cmp dword [esi + 0x6c], edi
je 0x4b8984
cmp dword [esi + 0x70], edi
je 0x4b8984
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push edi
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push 0x20000013
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 4
call ebx
test eax, eax
je 0x4b8984
mov eax, dword [ebp - 0x74]
cmp eax, 0x197
jne 0x4b8881
cmp dword [esi + 0x40], edi
jne 0x4b88d0
mov eax, dword [0x4f3604]
mov ecx, dword [eax - 8]
cmp ecx, edi
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x4b886b
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2b
push dword [esi + 0x60]
call ebx
mov eax, dword [0x4f3608]
mov ecx, dword [eax - 8]
cmp ecx, edi
je 0x4b88c5
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x4b88c0
cmp eax, 0x191
jne 0x4b88d0
cmp dword [esi + 0x40], edi
jne 0x4b88d0
mov eax, dword [0x4f3604]
mov ecx, dword [eax - 8]
cmp ecx, edi
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x4b88ac
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1c
push dword [esi + 0x60]
call ebx
mov eax, dword [0x4f3608]
mov ecx, dword [eax - 8]
cmp ecx, edi
je 0x4b88c5
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [esi + 0x60]
call ebx
xor eax, eax
inc eax
mov dword [esi + 0x40], eax
jmp 0x4b8986
cmp eax, 0x190
mov dword [esi + 0x28], eax
jae 0x4b8984
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x20000005
push dword [esi + 0x60]
call ebx
test eax, eax
je 0x4b8984
mov ecx, dword [ebp - 0x74]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x2c], ecx
mov edx, dword [eax + 0xc]
add edx, dword [eax + 4]
mov eax, dword [esi + 0x6c]
add edx, ecx
mov dword [eax + 0x10], edx
mov word [ebp - 0x70], di
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x6e]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push 1
push dword [esi + 0x60]
mov dword [ebp - 0x7c], 0x400
call ebx
test eax, eax
je 0x4b8984
lea eax, [ebp - 0x70]
push eax
lea edi, [ebp - 0x80]
call fcn.00402f03
add esi, 0x30
call fcn.0040a767
mov edi, eax
mov eax, esi
call fcn.00402f73
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4b896f
push eax
call fcn.004013aa
push str.text
xor ecx, ecx
call fcn.0040a781
test eax, eax
jge 0x4b8984
push 2
pop eax
jmp 0x4b8986
xor eax, eax
mov ecx, dword [ebp + 0x790]
pop edi
pop esi
pop ebx
call fcn.004c7b01
add ebp, 0x794
leave
ret
Function at 0x4b899c
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov eax, 0x2494
lea ebp, [esp - 0x2414]
call fcn.004c7d30
mov eax, dword [0x4ed384]
push ebx
xor ebx, ebx
cmp dword [0x4f2158], ebx
mov dword [ebp + 0x2410], eax
push esi
je 0x4b8b25
cmp dword [edi + 0x6c], ebx
je 0x4b8b25
cmp dword [edi + 0x70], ebx
je 0x4b8b25
mov esi, edi
call fcn.004b8b3c
push 0x10000000
push ebx
lea esi, [ebp - 0x78]
call fcn.0041752a
mov eax, dword [edi + 0x6c]
mov eax, dword [eax + 4]
push 0x10000000
push eax
mov eax, esi
call fcn.0041758b
test eax, eax
je 0x4b8b25
push ebx
push ebx
push 3
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push dword [0x4f2158]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [edi + 0x5c], eax
je 0x4b8b25
lea eax, [ebp - 0x80]
push eax
mov eax, esi
call fcn.004175f3
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
call fcn.00417657
mov esi, dword [esi]
mov eax, dword [eax]
push edi
push 0x84400200
push ebx
push esi
push ebx
push eax
push 0x4d50dc
push dword [edi + 0x5c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0x60], eax
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4b8a7e
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4b8a92
push eax
call fcn.004013aa
cmp dword [edi + 0x60], ebx
je 0x4b8b25
mov eax, dword [edi + 0x70]
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 4]
mov esi, dword [0x4f0980]
mov dword [ebp - 0x7c], esi
je 0x4b8aca
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 4]
lea eax, [ebp - 0x7c]
push ecx
push str.Range:_bytes_u__r_n
push eax
call fcn.00405986
mov esi, dword [ebp - 0x7c]
add esp, 0xc
mov eax, dword [esi - 8]
push ebx
push ebx
push eax
push esi
push dword [edi + 0x60]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4b8af4
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x4b8aef
push eax
call fcn.004013aa
push 2
pop eax
jmp 0x4b8b27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
lea eax, [esi - 0xc]
jne 0x4b8b17
cmp eax, dword [0x4f0984]
je 0x4b8b12
push eax
call fcn.004013aa
xor eax, eax
inc eax
jmp 0x4b8b27
cmp eax, dword [0x4f0984]
je 0x4b8b25
push eax
call fcn.004013aa
xor eax, eax
mov ecx, dword [ebp + 0x2410]
pop esi
pop ebx
call fcn.004c7b01
add ebp, 0x2414
leave
ret
Function at 0x4b911d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ed384]
push ebx
push esi
mov ebx, edx
cmp dword [ebx + 0x20], 0
mov dword [ebp - 4], eax
push edi
mov esi, ecx
je 0x4b9142
mov eax, ebx
call fcn.004b928f
mov edi, dword [esi + 4]
cmp edi, 1
jge 0x4b9151
xor eax, eax
jmp 0x4b9280
call fcn.004b972e
and dword [ebp - 0x210], 0
test edi, edi
jle 0x4b9188
mov eax, dword [ebp - 0x210]
mov ecx, esi
call fcn.004553ae
push eax
lea ecx, [ebx + 0xb0]
call fcn.004a2ea3
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], edi
jl 0x4b9161
cmp edi, dword [ebp + 0x18]
mov eax, dword [esi + 0x10]
mov dword [ebx + 0xc0], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0xc4], eax
jge 0x4b91a4
mov edi, dword [ebp + 0x18]
jmp 0x4b91ac
cmp edi, dword [ebp + 0x1c]
jle 0x4b91ac
mov edi, dword [ebp + 0x1c]
test edi, edi
jle 0x4b91bc
mov esi, edi
mov edi, ebx
call fcn.004b946f
dec esi
jne 0x4b91b2
push dword [ebp + 8]
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc8], eax
lea esi, [ebx + 0x3c]
mov eax, esi
call fcn.00402fb6
lea eax, [ebx + 0x38]
call fcn.00402f45
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x74], eax
mov eax, dword [esi]
xor edi, edi
mov dword [ebx + 0x78], 1
cmp dword [eax - 8], edi
jne 0x4b9260
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x78], edi
mov dword [ebp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x18], eax
mov word [ebp - 0x20c], di
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push dword [ebp + 0x1c]
push eax
push 0x4dc4f4
push esi
call fcn.00405986
add esp, 0x14
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
lea eax, [ebx + 0x20]
push eax
call esi
push edi
lea eax, [ebx + 0x24]
push eax
call esi
push edi
mov esi, ebx
call fcn.004b9444
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004c7b01
leave
ret 0x18
Function at 0x4b9b25
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4b9b50
lea eax, [esi + 0x84]
mov ecx, dword [eax]
mov ecx, dword [ecx + 8]
cmp ecx, edi
je 0x4b9b42
mov dword [ecx], edi
mov eax, dword [eax]
mov dword [eax + 0xc], 2
xor eax, eax
inc eax
jmp 0x4b9baa
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x84]
mov dword [ebp - 4], edi
push dword [eax]
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x4b9b8f
mov ecx, dword [ebp - 4]
add dword [esi + 0x4c], ecx
mov ecx, dword [esi + 0x4c]
cmp ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x84]
sbb ecx, ecx
add ecx, 3
mov dword [edx + 0xc], ecx
jmp 0x4b9b98
mov ecx, dword [esi + 0x84]
mov dword [ecx + 0xc], edi
mov ecx, dword [esi + 0x84]
mov ecx, dword [ecx + 8]
cmp ecx, edi
je 0x4b9baa
mov edx, dword [ebp - 4]
mov dword [ecx], edx
pop edi
leave
ret 4

Function at 0x4b9eed
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
call fcn.004b9c6e
mov edi, ebx
call fcn.004ba05e
cmp dword [ebx + 0x78], 0
je 0x4b9fc3
lea esi, [ebx + 0x3c]
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x4b9fc3
call fcn.004b99c8
test eax, eax
lea edi, [ebx + 0x38]
je 0x4b9fa2
mov eax, esi
mov ecx, edi
call fcn.0041449d
test al, al
je 0x4b9f6b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4b9f56
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4b9f6b
push 0
push 0
lea eax, [ebx + 0xc0]
push eax
push dword [esi]
call fcn.004a522b
add esp, 0x10
push str..xml
push esi
lea eax, [ebp - 4]
push eax
call fcn.00403120
mov esi, dword [ebp - 4]
mov eax, esi
call fcn.00403dd0
test eax, eax
je 0x4b9f8f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x4b9fce
push eax
call fcn.004013aa
jmp 0x4b9fce
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
mov ecx, esi
mov esi, esp
mov dword [ebp - 4], esp
call fcn.00402eaa
mov ecx, 0x4f3590
call fcn.004b2bfd
jmp 0x4b9fce
lea edi, [ebx + 0x38]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004b9778
mov eax, edi
call fcn.00402f45
xor eax, eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x30]
call fcn.00402f45
pop edi
pop esi
pop ebx
leave
ret