joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c4d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000c598
mov ecx, dword [ebp - 8]
movsx edx, word [ecx + 8]
cmp edx, 2
jne 0x1000c578
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jne 0x1000c578
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x1000c535
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x1000c578
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
movzx eax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1000c430
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x1000c56b
mov eax, 8
jmp 0x1000c5de
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, 0x1c
mov dword [ebp - 0xc], ecx
jmp 0x1000c52c
push 0x400
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
push 0x401
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.1002dc9f
add esp, 0x10
xor eax, eax
jmp 0x1000c5de
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
sub edx, 0x2af9
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 3
ja case.default.0x1000c5b6
mov eax, dword [ebp - 0x10]
jmp dword [eax*4 + 0x1000c5e4]
mov eax, 0x2af9
jmp 0x1000c5de
mov eax, 0x2afa
jmp 0x1000c5de
mov eax, 0x2afb
jmp 0x1000c5de
mov eax, 0x2af9
jmp 0x1000c5de
mov eax, 0x2af9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1000ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str.getaddrinfo
mov dword [ebp - 0x1c], 0x1000c8a0
mov dword [ebp - 0x18], str.getnameinfo
mov dword [ebp - 0x14], 0x1000cc20
mov dword [ebp - 0x10], str.freeaddrinfo
mov dword [ebp - 0xc], fcn.1000c830
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
cmp dword [0x1006d98c], 0
je 0x1000cf3b
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x1006c20c]
jmp 0x1000d0eb
push 0x104
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1000cf56
jmp 0x1000d04b
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call fcn.1002d3a8
add esp, 0xc
push str.ws2_32
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call fcn.1002dc32
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1000cfc9
push str.getaddrinfo
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1000cfc9
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
je 0x1000cfd1
jmp 0x1000d04b
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call fcn.1002d3a8
add esp, 0xc
push str.wship6
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call fcn.1002dc32
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1000d044
push str.getaddrinfo
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1000d044
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x24], 0
jmp 0x1000d04b
cmp dword [ebp - 0x24], 0
je 0x1000d0d6
mov dword [ebp - 4], 0
jmp 0x1000d067
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jge 0x1000d0a5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*8 - 0x1c], eax
mov edx, dword [ebp - 4]
cmp dword [ebp + edx*8 - 0x1c], 0
jne 0x1000d0a3
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x24], 0
jmp 0x1000d0a5
jmp 0x1000d05e
cmp dword [ebp - 0x24], 0
je 0x1000d0d6
mov dword [ebp - 4], 0
jmp 0x1000d0bd
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 3
jge 0x1000d0d6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0x1c]
mov dword [edx*8 + 0x1006c20c], ecx
jmp 0x1000d0b4
mov dword [0x1006d98c], 1
movzx edx, word [ebp + 8]
mov eax, dword [edx*8 + 0x1006c20c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret 4
Function at 0x100281cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006a2a8]
jne 0x100281d9
repz ret
jmp fcn.10031518

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1002d75c
call fcn.1002e11e
mov dword [eax], esi
call fcn.1002e10b
push 0x16
pop esi
mov dword [eax], esi
call fcn.1002e008
mov eax, esi
jmp 0x1002d7b1
test dword [ebp + 0xc], 0xfffffff9
jne 0x1002d742
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002d789
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1002e131
pop ecx
call fcn.1002e10b
mov eax, dword [eax]
jmp 0x1002d7b1
test al, 0x10
jne 0x1002d7af
test al, 1
je 0x1002d7af
test byte [ebp + 0xc], 2
je 0x1002d7af
call fcn.1002e11e
mov dword [eax], 5
call fcn.1002e10b
mov dword [eax], 0xd
jmp 0x1002d780
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1004219c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10032574
and dword [ebp - 0x14], 0
cmp dword [0x1006d8cc], 0
mov dword [ebp - 0x18], eax
jne 0x1004224f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100422f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100422f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1006d8cc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1006d8d0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1006d8d4], eax
call edi
push eax
call esi
mov dword [0x1006d8dc], eax
test eax, eax
je 0x1004224f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1006d8d8], eax
mov eax, dword [0x1006d8d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100422a8
cmp dword [0x1006d8dc], ecx
je 0x100422a8
push eax
call esi
push dword [0x1006d8dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100422a8
test ebx, ebx
je 0x100422a8
call edi
test eax, eax
je 0x1004229f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1004229f
test byte [ebp - 8], 1
jne 0x100422a8
or dword [ebp + 0x10], 0x200000
jmp 0x100422db
mov eax, dword [0x1006d8d0]
cmp eax, dword [ebp - 0x18]
je 0x100422db
push eax
call esi
test eax, eax
je 0x100422db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100422db
mov eax, dword [0x1006d8d4]
cmp eax, dword [ebp - 0x18]
je 0x100422db
push eax
call esi
test eax, eax
je 0x100422db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1006d8cc]
call esi
test eax, eax
je 0x100422f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100422f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100281cf
leave
ret
Function at 0x1004f4f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10057f20
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006a2a8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x1006d8f8]
test eax, eax
jne 0x1004f524
xor esi, esi
jmp 0x1004f52d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x1004f577
cmp dword [esi + 0x14], 0
jne 0x1004f5b9
cmp dword [esi + 0x10], 0
jne 0x1004f5c0
push 0x1004b410
push 0x1006d8f0
call fcn.1004c6c0
mov eax, dword [0x1006d8f8]
add esp, 8
test eax, eax
je 0x1004f66d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x1004f5a5
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1004f5a5
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x1004f600
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1004f5ee
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x1004f5c0
cmp dword [esi + 0x14], 0
je 0x1004f549
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1004f625
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1004f656
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1004f656
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1004f656
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x1004f60a
jmp 0x1004f543
lea ecx, [esp + 0x18]
call fcn.100281de
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.10008c20
int3
Function at 0x1004fba0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100580b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1006a2a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.1004f960
mov esi, eax
push 0x1004b410
push 0x1006d8f0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.1004c6c0
mov eax, dword [0x1006d8f8]
add esp, 8
test eax, eax
je 0x1004fc11
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
call fcn.100281de
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], vtable.boost::thread_resource_error.0
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.10008c20
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1004be60
add esp, 4
push 0
push 0
call fcn.10029e49
int3

Function at 0x10052200
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 8
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x20000013
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10052270
cmp dword [ebp - 0x20], 0xc8
jne 0x10052261
cmp dword [ebp - 0x1c], 0
je 0x10052278
cmp dword [ebp - 0x20], 0x12e
jne 0x10052270
cmp dword [ebp - 0x1c], 0
je 0x10052278
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x100522cd
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 8
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x20000005
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x100522bb
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x100522cd
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x100524d0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058ecb
mov eax, dword fs:[0]
push eax
mov eax, 0x2144
call fcn.10037130
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2150], ecx
mov byte [ebp - 0x114], 0
push 0xff
push 0
lea eax, [ebp - 0x113]
push eax
call fcn.10029f30
add esp, 0xc
mov byte [ebp - 0x125], 1
lea ecx, [ebp - 0x124]
call fcn.1001ae40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2150]
cmp dword [ecx + 0x50], 0
je 0x1005256a
mov edx, dword [ebp - 0x2150]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x2150]
call fcn.10052200
mov ecx, dword [ebp - 0x2150]
mov ecx, dword [ecx + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ebp - 0x2138], 0x2000
mov byte [ebp - 0x2134], 0
push 0x1fff
push 0
lea edx, [ebp - 0x2133]
push edx
call fcn.10029f30
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push 0x2000
lea ecx, [ebp - 0x2134]
push ecx
mov edx, dword [ebp - 0x2150]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x1005263f
cmp dword [ebp - 0x130], 0
je 0x1005263f
mov ecx, dword [ebp - 0x2150]
cmp dword [ecx + 0x54], 0
je 0x100525fc
mov edx, dword [ebp - 0x2150]
mov eax, dword [edx + 0x54]
mov ecx, dword [ebp - 0x130]
xor edx, edx
add ecx, dword [eax]
adc edx, dword [eax + 4]
mov eax, dword [ebp - 0x2150]
mov eax, dword [eax + 0x54]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea ecx, [ebp - 0x2140]
push ecx
lea ecx, [ebp - 0x124]
call fcn.1001aec0
mov edx, dword [eax]
mov dword [ebp - 0x213c], edx
mov eax, dword [ebp - 0x130]
lea ecx, [ebp + eax - 0x2134]
push ecx
lea edx, [ebp - 0x2134]
push edx
mov eax, dword [ebp - 0x213c]
push eax
lea ecx, [ebp - 0x124]
call fcn.1001c610
jmp 0x10052660
cmp dword [ebp - 0x12c], 0
jne 0x1005265e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2150]
mov dword [ecx + 0x4c], eax
mov byte [ebp - 0x125], 0
jmp 0x1005266d
mov edx, 1
test edx, edx
jne 0x1005256a
movzx eax, byte [ebp - 0x125]
test eax, eax
je 0x100526e0
mov ecx, dword [ebp - 0x2150]
call fcn.10052430
test eax, eax
je 0x100526e0
lea ecx, [ebp - 0x2144]
push ecx
lea ecx, [ebp - 0x124]
call fcn.1001aec0
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x2148]
push eax
lea ecx, [ebp - 0x124]
call fcn.1001ae90
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x2150]
mov ecx, dword [edx + 0x5c]
call fcn.1001c650
mov byte [ebp - 0x2149], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.1001ae70
mov al, byte [ebp - 0x2149]
jmp 0x1005271d
mov eax, dword [ebp - 0x2150]
cmp dword [eax + 0x4c], 0xffffffff
jne 0x100526fe
mov ecx, dword [ebp - 0x2150]
mov edx, dword [ebp - 0x2150]
mov eax, dword [edx + 0x48]
mov dword [ecx + 0x4c], eax
mov byte [ebp - 0x214a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.1001ae70
mov al, byte [ebp - 0x214a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x100528a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058ffb
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.10003620
mov dword [ebp - 4], 0
mov eax, dword [0x10061104]
push eax
push 0x10060304
lea ecx, [ebp - 0x48]
call fcn.1001abd0
mov dword [ebp - 0x54], eax
push 0x10060308
lea ecx, [ebp - 0x4c]
call fcn.1001ac40
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [0x10061104]
je 0x100529d8
mov edx, dword [ebp - 0x54]
push edx
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.1000ece0
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x80]
call fcn.10003790
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000fcc0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x2c]
call fcn.10003680
lea ecx, [ebp - 0x4c]
call fcn.1000fce0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100529bc
push 0x1006030c
lea ecx, [ebp - 0x58]
call fcn.1001acc0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.1001ad40
add esp, 0xc
mov dword [ebp - 0x84], eax
push 0
mov ecx, dword [ebp - 0x84]
call fcn.1000fce0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x5c]
call fcn.1000fca0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.1000fca0
push 0
push 0x80
push 2
push 0
push 5
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.1000fca0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x48]
call fcn.10003680
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x10052a20
Capabilities:
Delete file
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
mov eax, 0x212c
call fcn.10037130
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x212c], ecx
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.10029f30
add esp, 0xc
mov eax, dword [ebp - 0x212c]
add eax, 0x1c
call fcn.10003790
push eax
call fcn.100528a0
add esp, 4
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x115], 1
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x10052a8e
xor al, al
jmp 0x10052c41
mov ecx, dword [ebp - 0x212c]
cmp dword [ecx + 0x50], 0
je 0x10052abd
mov edx, dword [ebp - 0x212c]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x212c]
call fcn.10052200
mov ecx, dword [ebp - 0x212c]
mov ecx, dword [ecx + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x114]
call fcn.1000ea70
mov dword [ebp - 0x2124], 0x2000
mov byte [ebp - 0x2120], 0
push 0x1fff
push 0
lea eax, [ebp - 0x211f]
push eax
call fcn.10029f30
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
push 0x2000
lea edx, [ebp - 0x2120]
push edx
mov eax, dword [ebp - 0x212c]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x10052b94
cmp dword [ebp - 0x120], 0
je 0x10052b94
mov edx, dword [ebp - 0x212c]
cmp dword [edx + 0x54], 0
je 0x10052b61
mov eax, dword [ebp - 0x212c]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x120]
xor eax, eax
add edx, dword [ecx]
adc eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x212c]
mov ecx, dword [ecx + 0x54]
mov dword [ecx], edx
mov dword [ecx + 4], eax
push 0
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x2120]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10052b92
mov byte [ebp - 0x115], 0
jmp 0x10052bc2
jmp 0x10052bb5
cmp dword [ebp - 0x11c], 0
jne 0x10052bb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x212c]
mov dword [ecx + 0x4c], eax
mov byte [ebp - 0x115], 0
jmp 0x10052bc2
mov edx, 1
test edx, edx
jne 0x10052acf
movzx eax, byte [ebp - 0x115]
test eax, eax
je 0x10052bdc
mov ecx, dword [ebp - 0x212c]
call fcn.10052430
test eax, eax
jne 0x10052c29
mov ecx, dword [ebp - 0x212c]
cmp dword [ecx + 0x4c], 0xffffffff
jne 0x10052bfa
mov edx, dword [ebp - 0x212c]
mov eax, dword [ebp - 0x212c]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x4c], ecx
mov eax, dword [ebp - 0x212c]
add eax, 0x1c
call fcn.10003790
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x2125], 0
lea ecx, [ebp - 0x114]
call fcn.1000ea90
mov al, byte [ebp - 0x2125]
jmp 0x10052c41
mov byte [ebp - 0x2126], 1
lea ecx, [ebp - 0x114]
call fcn.1000ea90
mov al, byte [ebp - 0x2126]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret