joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
xor eax, eax
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x12], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x64]
movlpd qword [ebp - 0x50], xmm0
push eax
lea eax, [ebp - 0x54]
movlpd qword [ebp - 0x48], xmm0
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
push ecx
push 0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x22], xmm0
movlpd qword [ebp - 0x1a], xmm0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], dx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov edi, eax
test edi, edi
je 0x4170ca
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop edi
call fcn.00497cb0
mov esp, ebp
pop ebp
ret

Function at 0x4170e0
Capabilities:
Get file size

Disassembly:
push edi
push 0
push 0
push 3
push 0
push 1
push 8
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417113
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x417120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ec28
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.UIDowner
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14], edx
push str.Software_s_repeat
push eax
call fcn.00413710
add esp, 0xc
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push 0x58b64c
push eax
call fcn.00413710
add esp, 0xc
lea edx, [ebp - 0x14]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
push 4
cmovae eax, dword [ebp - 0x44]
push edx
push 4
push ecx
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
cmp edx, 8
jb 0x4171e4
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4171da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41724b
push edx
push ecx
call fcn.00497cc1
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x41722e
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417224
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417250
push edx
push ecx
call fcn.00497cc1
add esp, 8
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret
call fcn.00524999
call fcn.00524999
int3
Function at 0x417280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edx
lea edx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push edx
push 0
lea edx, [ebp - 8]
mov dword [ebp - 0xc], 0
push edx
mov esi, ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
push esi
mov dword [ebp - 0x10], ecx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x417367
cmp dword [ebp - 8], 1
jne 0x417367
mov eax, dword [ebp - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00481079
mov ecx, dword [ebp - 0xc]
mov ebx, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push ebx
call fcn.005219d0
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x417367
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x417325
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
push ebx
lea esi, [ecx + eax*2]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
shl eax, 2
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x41733f
mov ecx, dword [edi]
sar eax, 1
sub esi, ecx
push eax
push ebx
push 0
sar esi, 1
mov ecx, edi
push esi
call fcn.0041bc50
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497cb0
mov esp, ebp
pop ebp
ret
Function at 0x418290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x58cf14
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov edi, edx
call fcn.0052e2a2
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
jne 0x4182d2
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret
push esi
push eax
push 1
push dword [ebp + 8]
xor esi, esi
push edi
call fcn.0052aa71
test eax, eax
mov ecx, 1
cmovne esi, ecx
push dword [ebp - 8]
call fcn.0052acd1
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop esi
pop edi
call fcn.00497cb0
mov esp, ebp
pop ebp
ret
Function at 0x419e10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ef08
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x419e4a
xor eax, eax
jmp 0x41a011
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x419e54
mov eax, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
jne 0x419e6b
mov eax, 1
jmp 0x41a011
push edi
lea ecx, [ebp - 0x58]
call fcn.00402a30
push 1
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00419ca0
add esp, 8
test eax, eax
jne 0x419e95
xor esi, esi
jmp 0x419fd9
push edi
lea ecx, [ebp - 0x28]
call fcn.00402a30
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00419ca0
add esp, 8
test eax, eax
jne 0x419ebc
xor esi, esi
jmp 0x419f8f
mov esi, 1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push esi
push eax
lea eax, [ebp - 0x40]
push str._s__d__s
push eax
call fcn.00413710
add esp, 0x14
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
je 0x419f45
mov byte [ebp - 4], 1
inc esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x419ec1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419f36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a02d
push edx
push ecx
call fcn.00497cc1
add esp, 8
jmp 0x419ec1
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.004108d0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x419f8a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419f80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a02d
push edx
push ecx
call fcn.00497cc1
add esp, 8
mov esi, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x419fc5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419fbb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a032
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x41a00f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a005
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a037
push edx
push ecx
call fcn.00497cc1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret
call fcn.00524999
call fcn.00524999
call fcn.00524999
int3
Function at 0x41a900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x41a92b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041e680
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x41a94d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41a94f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x41a9d3
jg 0x41a964
test esi, esi
je 0x41a9d3
test ecx, ecx
jl 0x41a9ad
jg 0x41a96e
test eax, eax
je 0x41a9ad
cmp edi, ecx
jg 0x41a982
jl 0x41a978
cmp esi, eax
jae 0x41a982
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00520ed0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x41a9b0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41a9d3
jg 0x41a9ba
test esi, esi
je 0x41a9d3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41a9d3
push eax
push esi
push 1
push edx
call fcn.0052aa71
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a9f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x41aa1b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041dfb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x41aa3d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41aa3f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x41aade
jg 0x41aa5c
test esi, esi
je 0x41aade
test ecx, ecx
jl 0x41aaa9
jg 0x41aa66
test eax, eax
je 0x41aaa9
cmp ebx, ecx
jg 0x41aa7a
jl 0x41aa70
cmp esi, eax
jae 0x41aa7a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00520ed0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x41aab0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x41aade
jg 0x41aaba
test esi, esi
je 0x41aade
cmp dword [edi + 0x4c], 0
je 0x41aade
mov ecx, edi
call fcn.0041bdf0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0052ebe9
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ae30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x41ae60
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41ae9c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41ae9c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x41af81
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x41aec4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41aef7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0052ef5f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x41af81
cmp eax, 1
jle 0x41af54
cmp eax, 3
jne 0x41af81
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0041df00
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41af71
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0052aa71
add esp, 0x10
cmp edi, eax
jne 0x41af81
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x41ae87
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4
Function at 0x41e170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e468
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5b0514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov dword [ebp - 0x18], 0
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.0040f5d0
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 1
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.0040a940
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x41e239
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x41e239
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x41e256
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00406b40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x422110
Capabilities:
Encode data using xor

Disassembly:
mov edx, ecx
xor eax, eax
movzx ecx, word [edx]
test cx, cx
je 0x422140
push esi
mov esi, ecx
nop
movzx ecx, si
lea edx, [edx + 2]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
movzx ecx, word [edx]
mov esi, ecx
test cx, cx
jne 0x422120
pop esi
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
Function at 0x42af60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x5b0514]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov esi, ecx
call fcn.0042f520
mov edi, dword [ebp + 8]
test edi, edi
jne 0x42afb0
push edi
push 0x81f7
push 0x81f4
push dword [esi + 0x210]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0x10], 0x20000
jne 0x42b069
cmp dword [esi + 0x150], 0
mov ecx, 0x140
mov eax, 0x238
cmovne eax, ecx
lea ecx, [esp + 0xc]
add eax, esi
push eax
call fcn.00402a30
cmp dword [esp + 0x1c], 0
jbe 0x42b005
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b005
push edi
push 0x81f7
jmp 0x42b00b
push edi
push 0x81f8
push 0x81f4
push dword [esi + 0x210]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [esp + 0x20]
cmp edx, 8
jb 0x42b097
mov ecx, dword [esp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b04a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b0ac
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 0x14
push edi
push 0x81f8
push 0x81f4
push dword [esi + 0x210]
call dword [sym.imp.USER32.dll_PostMessageW]
push 2
push str.Option
call fcn.0043b1e0
test eax, eax
je 0x42b097
mov ecx, esi
call fcn.0042f660
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 0x14
call fcn.00524999
int3
Function at 0x42b1e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5b0514]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x42b20d
mov ebx, 0x8000ffff
jmp 0x42b2d9
mov ecx, dword [eax + 4]
mov edx, dword [edi]
cmp ecx, 0x2f00
jne 0x42b2c4
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call dword [edx + 0xc]
mov ebx, dword [esp + 0x24]
lea eax, [edi + 0x1b0]
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test ebx, ebx
je 0x42b251
cmp dword [esp + 0x28], 8
lea ebx, [esp + 0x14]
cmovae ebx, dword [esp + 0x14]
jmp 0x42b253
xor ebx, ebx
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [edi + 0x1dc]
push edi
call dword [eax + 0x10]
add eax, esi
mov ecx, edi
push eax
push esi
push dword [edi + 0x1d8]
push dword [esp + 0x20]
push ebx
call fcn.0042f400
mov ebx, eax
lea eax, [edi + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x42b2d9
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b2b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b352
push edx
push ecx
call fcn.00497cc1
add esp, 8
jmp 0x42b2d9
push dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0042f710
push eax
mov ecx, edi
call dword [edx + 8]
mov ebx, eax
push 0
push 0x81f8
push 0x81f4
push dword [edi + 0x210]
call dword [sym.imp.USER32.dll_PostMessageW]
push 2
push str.Option
call fcn.0043b1e0
test eax, eax
je 0x42b33c
lea esi, [edi + 0x1b0]
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [edi + 0x150], 0
je 0x42b335
add edi, 0x140
cmp dword [edi + 0x14], 8
jb 0x42b325
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x42b335
call fcn.0042fb30
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 0x10
call fcn.00524999
int3
Function at 0x42e560
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f900
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 0x14], 0
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x42e603
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], 0
jb 0x42e5c8
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x14]
push ecx
shr eax, 1
mov ecx, esi
push eax
call fcn.00427290
cmp dword [esi + 0x14], 8
jb 0x42e5e3
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x42e603
call fcn.0042fb30
jmp 0x42e605
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42f0b0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x82]
push 0x7e
push 0
push eax
mov esi, ecx
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.005219d0
add esp, 0xc
mov dword [ebp - 0x88], 0x80
xor eax, eax
mov word [ebp - 0x84], ax
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push 5
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x42f13a
call fcn.0042fb30
mov esi, eax
test esi, esi
jns 0x42f13c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4
xor esi, esi
lea eax, [ebp - 0x84]
push eax
call fcn.0052a7e5
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [edi], eax
xor ecx, ebp
mov dword [edi + 4], edx
mov eax, esi
pop edi
pop esi
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4

Function at 0x42f6b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.0042f520
cmp dword [ebp + 8], 0
je 0x42f6fe
push edi
lea edi, [esi + 0x1b0]
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi + 0x150], 0
je 0x42f6f6
add esi, 0x140
cmp dword [esi + 0x14], 8
jb 0x42f6e6
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x42f6f6
call fcn.0042fb30
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x14