joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433c2d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x433c62
cmp edi, dword [esi + 0xc]
jge 0x433c62
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x433c62
cmp edi, dword [eax + 8]
jge 0x433c62
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x433c64
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x433d68
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x433d9c
jmp fcn.0041fdd3
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x433e0d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x433f06
cmp eax, dword [edi + 0xc]
jge 0x433f06
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x433e5e
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x433eef
cmp dword [ebp + 0xc], ebx
je 0x433eef
jmp 0x433e88
push 0x10
call fcn.00433af9
cmp eax, ebx
je 0x433e74
mov ecx, eax
call fcn.00433d5f
mov esi, eax
jmp 0x433e76
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x433e9f
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x433eaf
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x433ec1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041fdd3
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00414930
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x433f01
cmp ecx, dword [esi + 8]
jge 0x433f01
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x433f07
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401b06
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b45
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b45
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b45
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b45
cmp dword [ecx + 0x74], 0xe
jbe 0x401b45
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d354
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e8018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40d39f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040d571
test al, al
jne 0x40d399
sub edx, 2
cmp edx, edi
jne 0x40d37f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40d3c1
lea eax, [edi + 2]
cmp edx, eax
je 0x40d3c1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040d2a0
add esp, 0x10
jmp 0x40d4bb
push esi
lea ecx, [ebp - 0x255]
call fcn.0040d571
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d404
push dword [ebp - 0x25c]
jmp 0x40d3b1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40d441
cmp word [ebp - 0x226], 0
je 0x40d462
cmp word [ebp - 0x226], ax
jne 0x40d441
cmp word [ebp - 0x224], 0
je 0x40d462
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040d2a0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40d4ae
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40d41b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40d496
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40d4bb
push 0x40d001
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004144f0
add esp, 0x10
jmp 0x40d48b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e35
leave
ret

Function at 0x40e690
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040e2d5
Function at 0x411812
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040c780
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411881
cmp esi, dword [ebp - 4]
je 0x41187c
cmp dword [ebp + 0xc], 0
je 0x41187c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x411859
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00411364
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x411883
xor eax, eax
inc eax
jmp 0x411883
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4118e8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e8018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040c780
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040c780
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41195f
cmp word [ecx], dx
je 0x41195f
mov eax, dword [0x46d7d4]
push edi
dec eax
push eax
push 0x46d6c0
call fcn.00411887
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4119d2
cmp word [eax], dx
je 0x4119d2
mov eax, dword [edi]
test eax, eax
je 0x411983
cmp word [eax], dx
je 0x411983
lea eax, [ebp - 0x10]
push eax
call fcn.0041126a
jmp 0x41198c
lea eax, [ebp - 0x10]
push eax
call fcn.00411305
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4119fc
mov eax, dword [0x46d6bc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x46d3b0
call fcn.00411887
add esp, 0xc
test al, al
je 0x4119fc
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4119c7
cmp word [eax], di
je 0x4119c7
lea eax, [ebp - 0x10]
push eax
call fcn.0041126a
pop ecx
jmp 0x4119fe
lea eax, [ebp - 0x10]
push eax
call fcn.00411305
jmp 0x4119c4
mov eax, dword [edi]
test eax, eax
je 0x4119e9
cmp word [eax], dx
je 0x4119e9
lea eax, [ebp - 0x10]
push eax
call fcn.0041121f
pop ecx
jmp 0x4119fc
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x411ac7
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041170c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x411ac7
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x411ac7
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x411ac7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x411a54
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004121ad
test ebx, ebx
je 0x411ac2
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004121ad
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411ac7
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411ac7
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00415211
add esp, 0x10
xor eax, eax
inc eax
jmp 0x411ac9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e35
leave
ret
Function at 0x411f12
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e818
push 0x46e810
push str.FlsAlloc
push 0x1f
call fcn.00411d7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f46
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b2fc]
call esi
jmp 0x411f4c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411f90
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e828
push 0x46e820
push str.FlsGetValue
push 0x21
call fcn.00411d7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411fc7
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b2fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x411fd1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e830
push 0x46e828
push str.FlsSetValue
push 0x22
call fcn.00411d7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41200b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x46b2fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418e5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4ea798]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418e9b
cmp byte [ebx], 0xa
jne 0x418e9b
or byte [edi + eax + 0x28], 4
jmp 0x418ea0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x418f9f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x418f82
inc eax
cmp dl, 0xd
je 0x418ecc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x418ef2
cmp eax, ecx
jae 0x418f00
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x418eb4
jmp 0x418f9f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418f7d
cmp dword [ebp - 0x10], 0
je 0x418f7d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4ea798]
test byte [eax + edi + 0x28], 0x48
je 0x418f57
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418f42
mov byte [esi], dl
jmp 0x418f53
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ea798]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418f9f
cmp byte [ebp - 1], 0xa
jne 0x418f66
cmp esi, ebx
jne 0x418f66
mov byte [esi], 0xa
jmp 0x418f9e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418dcb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418f9f
mov byte [esi], 0xd
jmp 0x418f9e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4ea798]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418f9c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418f9f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418fa8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4ea798]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418fee
cmp word [ebx], dx
jne 0x418fee
or byte [eax + edi + 0x28], 4
jmp 0x418ff3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x419156
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x419136
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x419034
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41906a
cmp eax, edx
jae 0x419078
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41900f
jmp 0x419156
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419131
cmp dword [ebp - 0x18], 0
je 0x419131
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4ea798]
test byte [eax + edi + 0x28], 0x48
je 0x419107
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4190cb
mov word [esi], cx
jmp 0x419102
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4ea798]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4ea798]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4ea798]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x419156
pop eax
cmp word [ebp - 4], ax
jne 0x419117
cmp esi, ebx
jne 0x419117
mov word [esi], ax
jmp 0x419153
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418dcb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x419156
push 0xd
pop eax
jmp 0x419112
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4ea798]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x419150
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x419156
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e3cf
Capabilities:
Check http status code
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4024
call fcn.00441f20
mov eax, dword [0x4e8018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 0x32
pop edi
push ebx
push ebx
mov dword [ebp - 0x401c], eax
xor eax, eax
push ebx
inc eax
push ebx
push str.SpotifyInstaller_1.0
mov dword [ebp - 0x4018], eax
mov byte [0x4eab18], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x4024], eax
test eax, eax
jne 0x41e42c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41e59e
push ebx
push 0x80000200
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
jne 0x41e450
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x34
pop edi
jmp 0x41e592
and dword [ebp - 0x4010], 0
lea eax, [ebp - 0x4008]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
push eax
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x4008], 4
push eax
push 0x20000005
push ebx
call esi
and dword [ebp - 0x4014], 0
lea eax, [ebp - 0x4008]
push 0
push eax
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4008], 4
push eax
push 0x20000013
push ebx
call esi
cmp dword [ebp - 0x4014], 0xc8
je 0x41e4bb
push 0x33
jmp 0x41e58a
mov eax, dword [ebp - 0x4010]
xor esi, esi
mov dword [0x4eab14], eax
mov dword [0x4eab10], 0
jmp 0x41e57b
push 0x4eaaf8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4eaaf8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x400c]
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41e5cd
cmp byte [ebp - 0x4018], 0
mov eax, dword [ebp - 0x400c]
je 0x41e53c
mov byte [ebp - 0x4018], 0
cmp eax, 2
jb 0x41e53c
cmp byte [ebp - 0x4004], 0x4d
jne 0x41e5af
cmp byte [ebp - 0x4003], 0x5a
jne 0x41e5af
test eax, eax
je 0x41e5bd
push 0
lea ecx, [ebp - 0x4020]
push ecx
push eax
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x401c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e5b3
mov eax, dword [ebp - 0x400c]
cmp dword [ebp - 0x4020], eax
jne 0x41e5b9
add dword [0x4eab10], eax
add esi, dword [ebp - 0x400c]
cmp byte [0x4eaaf4], 0
je 0x41e4d7
push 0x13
pop edi
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x4024]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e35
leave
ret
push 0x36
jmp 0x41e58a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb
jmp 0x41e58a
xor eax, eax
cmp esi, dword [ebp - 0x4010]
push 0x36
pop edi
cmove edi, eax
jmp 0x41e58b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41e58b
Function at 0x41e736
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x41e765
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41e765
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41e770
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41e76e
mov dword [eax], esi
mov al, 1
pop esi
pop ebp
ret

Function at 0x4205ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
xor esi, esi
xor al, 1
push esi
push esi
push 1
push esi
mov byte [0x4eab20], al
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4eab28], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x420e61
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebp
ret
Function at 0x422e2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e8018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x422e66
xor al, al
jmp 0x422e79
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401e35
leave
ret

Function at 0x422f4d
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e8018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x104
push ecx
push 0xffffffffffffffff
push eax
xor edi, edi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x422f8e
push 0xa
pop eax
jmp 0x423008
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x422fc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x20
neg eax
sbb eax, eax
add eax, 0xe
jmp 0x423007
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x422ff0
cmp dword [ebp - 0x210], edi
jne 0x422ff0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x423007
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xc
pop eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00401e35
leave
ret
Function at 0x4285a8
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x4673fc
call fcn.00441b26
mov esi, ecx
and dword [ebp - 4], 0
mov eax, SysReAllocString
push 2
pop ecx
cmp dword [ebp + 8], ecx
mov edi, 0xc0000000
cmovne edi, eax
setne bl
mov eax, dword [ebp + 0x20]
or eax, dword [ebp + 0x24]
je 0x4285dc
test bl, bl
je 0x4285df
push 3
pop ecx
xor eax, eax
mov edx, 0x100
inc eax
test bl, bl
push 0
cmovne edx, eax
cmp byte [ebp + 0x60], 0
push edx
push ecx
push 0
push eax
push edi
je 0x42860e
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
cmovae eax, dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x428620
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
or edi, 0xffffffff
mov dword [esi + 0x70], ecx
cmp ecx, edi
je 0x4286ff
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
or eax, edx
je 0x428676
test bl, bl
jne 0x428676
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edx
push eax
push dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x42865f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42866c
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x428676
push str.failed_setting_file_size
jmp 0x428704
push 0x4cf728
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4cf738
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4286b0
lea ecx, [ebp - 0x14]
push ecx
push dword [esi + 0x70]
call eax
test eax, eax
je 0x4286a9
mov eax, dword [ebp - 0x10]
xor ecx, ecx
or ecx, dword [ebp - 0x14]
cdq
jmp 0x4286c8
push str.failed_querying_file_size
jmp 0x428704
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
je 0x4286a9
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x18], edi
je 0x4286dd
test eax, eax
jg 0x4286d8
jl 0x4286dd
cmp ecx, dword [ebp + 0x18]
jb 0x4286dd
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi + 0x68], ecx
lea ecx, [ebp + 0x48]
and dword [esi + 0x6c], 0
call fcn.0041fde9
lea ecx, [ebp + 0x30]
call fcn.0041fdc3
call fcn.00441af4
ret 0x60
push str.failed_opening_file
mov ecx, esi
call fcn.00428256
int3