joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419e10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ef98
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.00497d51
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.00497d51
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.00497d51
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.00497d51
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.00497d40
mov esp, ebp
pop ebp
ret
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
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.00520f60
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.0052ab01
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.00520f60
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.0052ec79
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.00497d40
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.00497d40
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.0052efef
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.00497d40
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.00497d40
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.0052ab01
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.00497d40
mov esp, ebp
pop ebp
ret 4
Function at 0x41e170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e4f8
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.00497d40
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.00497d51
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00497d40
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.00497d40
mov esp, ebp
pop ebp
ret 0x14
call fcn.00524a29
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.00497d51
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.00497d40
mov esp, ebp
pop ebp
ret 0x10
call fcn.00524a29
int3
Function at 0x42e560
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f990
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.00497d40
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.00521a60
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.00497d40
mov esp, ebp
pop ebp
ret 4
xor esi, esi
lea eax, [ebp - 0x84]
push eax
call fcn.0052a875
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.00497d40
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
Function at 0x42f910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fa78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 esi, ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x1b0]
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov byte [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ebx
add dword [esi + 0x1e8], ecx
mov eax, dword [esi + 0x184]
adc dword [esi + 0x1ec], ebx
test eax, eax
je 0x42f99a
push ebx
lea edx, [ebp - 0x14]
push edx
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x42f996
call fcn.0042fb30
mov ebx, eax
jmp 0x42f9fc
xor ebx, ebx
jmp 0x42f9fc
mov eax, dword [esi + 0x15c]
lea edi, [esi + 0x158]
mov edx, dword [edi]
sub eax, edx
jne 0x42f9e2
mov ecx, dword [esi + 0x1d0]
mov eax, ecx
and eax, dword [esi + 0x1d4]
cmp eax, 0xffffffff
mov eax, dword [edi + 8]
je 0x42f9d2
sub eax, edx
cmp ecx, eax
jbe 0x42f9e2
cmp ecx, 0x7fffffff
ja 0x42fa30
jmp 0x42f9da
mov ecx, dword [esi + 0x180]
jmp 0x42f9c2
push ecx
mov ecx, edi
call fcn.0042f850
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, ecx
push eax
push ecx
push dword [esi + 0x15c]
mov ecx, edi
call fcn.004077f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, ebx
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.00497d40
mov esp, ebp
pop ebp
ret 8
call fcn.00402b10
int3
Function at 0x42fb50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x5b0514]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1b0]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x194]
test eax, eax
je 0x42fc10
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push dword [esi + 0x190]
push dword [esi + 0x18c]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x42fbb9
call fcn.0042fb30
mov edi, eax
test edi, edi
js 0x42fc40
push 0
push dword [esp + 0x14]
push dword [esi + 0x18c]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x42fbdd
call fcn.0042fb30
mov edi, eax
test edi, edi
js 0x42fc40
mov eax, dword [esp + 0x10]
add dword [esi + 0x1a8], eax
mov ecx, dword [esi + 0x1a8]
adc dword [esi + 0x1ac], 0
mov eax, dword [esi + 0x1ac]
cmp eax, dword [esi + 0x1a4]
jb 0x42fc0c
ja 0x42fc3b
cmp ecx, dword [esi + 0x1a0]
jae 0x42fc3b
xor edi, edi
jmp 0x42fc40
mov eax, dword [esi + 0x168]
test eax, eax
je 0x42fc3b
push 0
push eax
push dword [esi + 0x164]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x42fc3b
call fcn.0042fb30
mov edi, eax
test edi, edi
js 0x42fc40
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00497d40
mov esp, ebp
pop ebp
ret

Function at 0x430580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 5
push 0
push 0
push dword [ebp + 0x1c]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4305ab
mov eax, dword [ebp + 0x10]
mov ecx, 1
mov eax, dword [eax]
mov word [eax], cx
pop ebp
ret 0x18
Function at 0x438890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, ecx
cmp edx, 0x81f7
jne 0x4388b7
mov ecx, dword [eax + 0xc34]
test ecx, ecx
je 0x4388b7
push 2
call fcn.004c8400
xor eax, eax
pop ebp
ret 8
mov dword [ebp + 8], edx
mov ecx, eax
pop ebp
jmp fcn.00462ed0

Function at 0x439fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp + 8]
imul ecx
push edi
sar edx, 2
mov edi, edx
mov dword [esi], 0
shr edi, 0x1f
add edi, edx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [edi + edi*2]
shl eax, 3
sub ecx, eax
mov dword [esi + 0xc], ecx
cmp edi, 0x16d
jle 0x43a001
inc dword [esi]
mov ecx, esi
call fcn.00439e90
movzx eax, al
add edi, 0xfffffe92
xor eax, 1
add edi, eax
cmp edi, 0x16d
jg 0x439fe2
mov dword [esi + 4], 0xc
mov eax, 0xc
cmp edi, dword [esi + 0x40]
jge 0x43a01c
dec eax
mov dword [esi + 4], eax
cmp edi, dword [esi + eax*4 + 0x10]
jl 0x43a012
sub edi, dword [esi + eax*4 + 0x10]
mov eax, esi
mov dword [esi + 8], edi
pop edi
pop esi
pop ebp
ret 4