joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10113750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x10184f40]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xa4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa8]
push edi
push eax
push dword [ecx + 0x14]
mov edi, edx
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 0x10]
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
call fcn.10115a70
add esp, 8
test eax, eax
jne 0x101138e6
mov eax, dword [esp + 0xb0]
mov ebp, dword [esp + 0xa8]
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x74], 1
mov dword [esp + 0x70], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x78], 1
nop
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x40000
test ebp, ebp
ja 0x10113822
jb 0x1011381e
cmp ebx, 0x40000
jae 0x10113822
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi]
push edi
call eax
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x101138d3
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
push 1
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call fcn.10115790
mov esi, eax
add esp, 0x10
mov eax, dword [esp + 0x18]
sub dword [esp + 0x10], eax
sub ebx, eax
sbb ebp, 0
test esi, esi
jne 0x101138d3
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
cmp ecx, edx
je 0x101138b0
test eax, eax
jne 0x1011389a
cmp dword [esp + 0x1c], ecx
je 0x101138b0
push eax
mov eax, dword [edi + 4]
push edi
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x10113800
jmp 0x101138d3
cmp edx, dword [esp + 0xb0]
jne 0x101138ce
cmp dword [esp + 0x10], 0
jne 0x101138ce
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x101138d3
cmp eax, 4
je 0x101138d3
mov esi, 1
mov eax, dword [esp + 0x24]
push dword [esp + 0x38]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10116580
add esp, 0x90
ret
Function at 0x10115f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push edi
mov ebp, ecx
xor edi, edi
mov eax, dword [eax]
and eax, 7
mov dword [esp + 0x10], ebp
cmp edx, 5
jae 0x10115f63
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ebp
push esi
mov dword [esp + 0x10], edx
lea esi, [edi + ebp]
cmp esi, edx
jae 0x10115f87
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x10115f87
inc esi
cmp esi, edx
jb 0x10115f78
mov edi, esi
sub edi, ebp
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x10116094
cmp ecx, 3
jbe 0x10115fc5
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [esp + 0x14], ebx
test cl, cl
je 0x10116001
cmp cl, 0xff
je 0x10116001
mov edx, dword [esp + 0x10]
and eax, 3
add eax, eax
mov ecx, 1
or eax, 1
add edi, ecx
jmp 0x10115f71
dec ecx
shl eax, cl
and eax, 7
je 0x10115f9e
movzx ecx, byte [eax + 0x10175878]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x10175870], 0
mov cl, byte [edx + 4]
je 0x10115fed
test cl, cl
je 0x10115fed
cmp cl, 0xff
jne 0x10115f9e
mov edx, dword [esp + 0x10]
and eax, 3
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x10115f71
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
nop
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x1011605a
movzx ebp, byte [eax + 0x10175878]
mov ecx, 0x18
shl ebp, 3
mov edx, ebx
sub ecx, ebp
shr edx, cl
test dl, dl
je 0x10116047
cmp dl, 0xff
jne 0x1011605a
mov ecx, 0x20
mov edx, 1
sub ecx, ebp
shl edx, cl
dec edx
xor edx, ebx
jmp 0x10116020
mov ebp, dword [esp + 0x18]
mov ecx, ebx
mov edx, dword [esp + 0x10]
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [esp + 0x14]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
add edi, ecx
jmp 0x10115f71
pop esi
pop ebx
cmp ecx, 3
jbe 0x101160ab
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
dec ecx
shl eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret

Function at 0x10131f2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10131dab

Function at 0x10136e23
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10136ae3
Function at 0x402e40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x413080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push 0x4139a0
mov dword [ebp - 0x40c], esi
call sub.libav.dll_Ordinal_44272
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x402e95
push 0x4139a0
push str._checkdbdir:_Cant_open_directory__s_n
call fcn.00409df0
add esp, 8
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push ebx
call sub.libav.dll_Ordinal_44273
add esp, 4
test eax, eax
je 0x402fe6
push edi
mov edi, dword [sym.imp.MSVCR110.dll__unlink]
lea ecx, [ecx]
cmp word [eax], 0
je 0x402fd4
lea esi, [eax + 3]
push str..cld
push esi
call sub.libav.dll_Ordinal_44258
add esp, 8
test eax, eax
jne 0x402ee5
push str..cvd
push esi
call sub.libav.dll_Ordinal_44258
add esp, 8
test eax, eax
je 0x402fce
push esi
push 0x4139a0
push 0x40e688
lea eax, [ebp - 0x204]
push 0x200
push eax
call sub.libav.dll_Ordinal_44276
lea eax, [ebp - 0x204]
push eax
call sub.libav.dll_Ordinal_5
add esp, 0x18
test eax, eax
je 0x402fce
or esi, 0xffffffff
push eax
mov dword [ebp - 0x40c], esi
call sub.libav.dll_Ordinal_27
push eax
lea eax, [ebp - 0x204]
push eax
push str._Corrupted_database_file__s:__s_n
call fcn.00409e10
lea eax, [ebp - 0x204]
push eax
push str._s.broken
lea eax, [ebp - 0x408]
push 0x201
push eax
call sub.libav.dll_Ordinal_44276
lea eax, [ebp - 0x408]
push 4
push eax
call sub.libav.dll_Ordinal_44340
add esp, 0x28
test eax, eax
jne 0x402f77
lea eax, [ebp - 0x408]
push eax
call edi
add esp, 4
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.MSVCR110.dll_rename]
add esp, 8
test eax, eax
je 0x402fb8
lea eax, [ebp - 0x204]
push eax
call edi
add esp, 4
test eax, eax
je 0x402fd4
lea eax, [ebp - 0x204]
push eax
push str._Cant_remove_broken_database_file__s__please_delete_it_manually_and_restart_PCAccelerateProUpdater_n
call fcn.00409e10
add esp, 8
jmp 0x402fd4
lea eax, [ebp - 0x408]
push eax
push str.Corrupted_database_file_renamed_to__s_n
call fcn.00409e10
add esp, 8
jmp 0x402fd4
mov esi, dword [ebp - 0x40c]
push ebx
call sub.libav.dll_Ordinal_44273
add esp, 4
test eax, eax
jne 0x402eb0
pop edi
push ebx
call sub.libav.dll_Ordinal_44274
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
Function at 0x40a110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2238
call fcn.0040a7b0
mov eax, dword [0x413080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x8000
push eax
mov dword [ebp - 0x2238], eax
xor esi, esi
call dword [sym.imp.MSVCR110.dll__open]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x40a225
lea eax, [ebp - 0x2034]
push eax
push edi
call dword [sym.imp.MSVCR110.dll__fstat64i32]
add esp, 8
cmp eax, 0xffffffff
je 0x40a21b
push 0x200
lea eax, [ebp - 0x2234]
push esi
push eax
call sub.MSVCR110.dll_memset
push 0x64
push dword [ebp - 0x2238]
lea eax, [ebp - 0x2234]
push eax
call dword [sym.imp.MSVCR110.dll_strncpy]
push dword [ebp - 0x2020]
lea eax, [ebp - 0x21b8]
push 0x411508
push 0xc
push eax
mov byte [ebp - 0x21d1], 0
call sub.libav.dll_Ordinal_44276
add esp, 0x28
xor ecx, ecx
xor edx, edx
lea ebx, [ebx]
movzx eax, byte [ebp + ecx - 0x2234]
add esi, eax
movzx eax, byte [ebp + ecx - 0x2233]
add ecx, 2
add edx, eax
cmp ecx, 0x200
jb 0x40a1c0
lea eax, [esi + 0x100]
add eax, edx
push eax
push str._06o
lea eax, [ebp - 0x21a0]
push 8
push eax
call sub.libav.dll_Ordinal_44276
add esp, 0x10
lea eax, [ebp - 0x2234]
push 0x200
push eax
test ebx, ebx
je 0x40a239
push ebx
call sub.libav.dll_Ordinal_44294
add esp, 0xc
test eax, eax
jne 0x40a24c
push edi
call dword [sym.imp.MSVCR110.dll__close]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll__write]
add esp, 0xc
cmp eax, 0x200
jne 0x40a21b
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.MSVCR110.dll__read]
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x40a2af
push esi
lea eax, [ebp - 0x2004]
push eax
test ebx, ebx
je 0x40a283
push ebx
call sub.libav.dll_Ordinal_44294
add esp, 0xc
test eax, eax
je 0x40a21b
jmp 0x40a293
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll__write]
add esp, 0xc
cmp eax, esi
jne 0x40a21b
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.MSVCR110.dll__read]
mov esi, eax
add esp, 0xc
test esi, esi
jg 0x40a268
push edi
call dword [sym.imp.MSVCR110.dll__close]
mov esi, dword [ebp - 0x2020]
add esp, 4
and esi, 0x800001ff
jns 0x40a2cf
dec esi
or esi, 0xfffffe00
inc esi
je 0x40a330
push 0x200
lea eax, [ebp - 0x2234]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov eax, 0x200
sub eax, esi
push eax
lea eax, [ebp - 0x2234]
push eax
test ebx, ebx
je 0x40a31b
push ebx
call sub.libav.dll_Ordinal_44294
add esp, 0xc
test eax, eax
jne 0x40a330
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll__write]
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a225
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
Function at 0x40865e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408666
mov dword [ecx*4 + 0x417960], eax
inc ecx
cmp ecx, 0x100
jb 0x408661
mov edx, 0x800
jmp 0x4086b3
mov eax, dword [ecx*4 + 0x417560]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x417960]
inc ecx
mov dword [ecx*4 + 0x41795c], eax
cmp ecx, edx
jb 0x408692
mov dword [fcn.00417820], 0x4125e0
call fcn.0040d835
test eax, eax
pop esi
jne 0x4086d5
mov dword [fcn.00417820], 0x412500
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x6fe52a1b
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x63ce15d4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x405cc0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429b12
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x436b68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x110], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x114], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x118
call fcn.004030f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x134
call fcn.00403320
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x150], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x154
call fcn.00403320
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
add ecx, 0x170
call fcn.00403320
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
add ecx, 0x18c
call fcn.00403320
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
add ecx, 0x1a8
call fcn.00403320
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
add ecx, 0x1c4
call fcn.00403320
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
add ecx, 0x1e0
call fcn.00403320
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x24]
add ecx, 0x1fc
call fcn.00403320
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x24]
add ecx, 0x21c
call fcn.00403320
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24]
add ecx, 0x240
call fcn.00403320
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x24]
add ecx, 0x25c
call fcn.00403320
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x24]
add ecx, 0x278
call fcn.00403320
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x24]
add ecx, 0x294
call fcn.00403320
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x24]
add ecx, 0x2b0
call fcn.00403320
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x2cc], 0
push 0x104
push 0
mov eax, dword [ebp - 0x24]
add eax, 0xc
push eax
call fcn.00419a10
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add ecx, 0xc
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov eax, dword [ebp - 0x24]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x154
call fcn.004022e0
lea ecx, [ebp - 0x20]
push ecx
call fcn.00408650
add esp, 4
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x154
call fcn.004022e0
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x154
call fcn.004029f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417fbe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406a50
Capabilities:
Check if file exists
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 1
jne 0x406b5c
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c4
call fcn.004029f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406b5a
push 0x3c
call fcn.0040a126
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [edx], 0x3c
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0x4008340
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], 0x42f49c
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c4
call fcn.004029f0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x134
call fcn.004029f0
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], 5
mov edx, dword [ebp - 8]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
jmp 0x406b93
push 5
push 0
push 0x42f0cb
mov ecx, dword [ebp - 0x10]
add ecx, 0x1a8
call fcn.004029f0
push eax
push 0x42f4a4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x114]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x406ba0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2cc], 4
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
jne 0x406bc6
xor eax, eax
jmp 0x406ce3
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x278
call fcn.004029f0
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x240
call fcn.004029f0
push eax
call fcn.004080a0
add esp, 0xc
test eax, eax
jne 0x406bfe
jmp 0x406ce0
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x294
call fcn.004029f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406c4f
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x25c
call fcn.004029f0
push eax
push 0x42f4ac
mov ecx, dword [ebp - 0xc]
add ecx, 0x294
call fcn.004029f0
push eax
call fcn.004082b0
add esp, 0x10
test eax, eax
jne 0x406cc2
push 0x403
push 0x402
push 0x401
push 0
push 2
push 5
mov ecx, dword [ebp - 0xc]
add ecx, 0x294
call fcn.004029f0
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x240
call fcn.004029f0
push eax
call fcn.00408e10
add esp, 0x20
mov dword [ebp - 8], eax
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x25c
call fcn.004029f0
push eax
push 0x42f4b0
mov ecx, dword [ebp - 0xc]
add ecx, 0x294
call fcn.004029f0
push eax
call fcn.004082b0
add esp, 0x10
test eax, eax
jne 0x406cc0
jmp 0x406ce0
jmp 0x406cc9
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
ja 0x406cd1
jmp 0x406ce0
mov dword [ebp - 4], 1
xor edx, edx
jne 0x406bcd
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4090c0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1308
call fcn.0041b950
mov eax, dword [0x436b68]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x4090e3
cmp dword [ebp + 0xc], 0
jne 0x4090ea
xor eax, eax
jmp 0x409333
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1264], 0
push 0x38
push 0
lea ecx, [ebp - 0x1260]
push ecx
call fcn.00419a10
add esp, 0xc
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea edx, [ebp - 0x107]
push edx
call fcn.00419a10
add esp, 0xc
mov byte [ebp - 0x188], 0
push 0x7f
push 0
lea eax, [ebp - 0x187]
push eax
call fcn.00419a10
add esp, 0xc
mov byte [ebp - 0x1308], 0
push 0x7f
push 0
lea ecx, [ebp - 0x1307]
push ecx
call fcn.00419a10
add esp, 0xc
mov byte [ebp - 0x1228], 0
push 0x823
push 0
lea edx, [ebp - 0x1227]
push edx
call fcn.00419a10
add esp, 0xc
mov byte [ebp - 0xa00], 0
push 0x823
push 0
lea eax, [ebp - 0x9ff]
push eax
call fcn.00419a10
add esp, 0xc
mov dword [ebp - 0x1264], 0x3c
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x1254], ecx
mov dword [ebp - 0x1250], 0x100
lea edx, [ebp - 0x188]
mov dword [ebp - 0x1248], edx
mov dword [ebp - 0x1244], 0x80
lea eax, [ebp - 0x1308]
mov dword [ebp - 0x1240], eax
mov dword [ebp - 0x123c], 0x80
lea ecx, [ebp - 0x1228]
mov dword [ebp - 0x1238], ecx
mov dword [ebp - 0x1234], 0x824
mov dword [ebp - 0x1288], 0
xor edx, edx
mov dword [ebp - 0x1284], edx
mov dword [ebp - 0x1280], edx
mov dword [ebp - 0x127c], edx
mov dword [ebp - 0x1278], edx
mov dword [ebp - 0x1274], edx
mov dword [ebp - 0x1270], edx
mov dword [ebp - 0x126c], edx
mov dword [ebp - 0x1268], edx
mov dword [ebp - 0x1288], 0x24
lea eax, [ebp - 0x1264]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x1d8], eax
lea edx, [ebp - 0x1264]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1288]
push ecx
call fcn.004097d0
add esp, 0x10
mov dword [ebp - 0x18c], 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x1d4]
push eax
mov ecx, dword [ebp - 0x1238]
push ecx
lea edx, [ebp - 0x1288]
push edx
call fcn.00409640
add esp, 0x10
mov dword [ebp - 0x18c], eax
mov byte [ebp - 0x1d0], 0
push 0x3f
push 0
lea eax, [ebp - 0x1cf]
push eax
call fcn.00419a10
add esp, 0xc
mov ecx, dword [ebp - 0x1d4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1284], 0
je 0x409301
mov edx, dword [ebp - 0x1284]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1280], 0
je 0x409317
mov eax, dword [ebp - 0x1280]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x127c], 0
je 0x40932d
mov ecx, dword [ebp - 0x127c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417fbe
mov esp, ebp
pop ebp
ret
Function at 0x409640
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
push 0
push 0x80000000
push 0
push 0x42f097
push str.HTTP_1.1
mov eax, dword [ebp + 0xc]
push eax
push 0x42f158
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
jne 0x40968f
jmp 0x4097ab
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00409900
add esp, 0x10
test eax, eax
jne 0x4096b4
jmp 0x4097ab
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0x10000
mov dword [ebp - 0xc], 0x10000
push 4
push 0x3000
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4096ef
jmp 0x4097ab
mov ecx, 1
test ecx, ecx
je 0x409795
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00419a10
add esp, 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x409749
jmp 0x4097ab
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
jne 0x40975a
jmp 0x409795
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
je 0x409790
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x4097ab
jmp 0x4096ef
push 0x8000
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x10]
jmp 0x4097c4
cmp dword [ebp - 8], 0
je 0x4097c2
push 0x8000
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov esp, ebp
pop ebp
ret