joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a1c0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c91db
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4fca20]
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, dword [ebp + 8]
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x10f]
push ebx
mov dword [ebp - 0x114], ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.0047e610
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
xor eax, eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov eax, 1
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x138]
push eax
push ebx
lea ecx, [ebp - 0x110]
push ecx
mov dword [ebp - 0x134], 2
mov dword [ebp - 0x118], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov eax, dword [ebp - 0x118]
cmp eax, ebx
jne 0x49a2a7
push str.0.0.0.0
mov ecx, edi
call fcn.00402008
jmp 0x49a322
mov edx, dword [0x4fc7ec]
mov esi, dword [eax + 0x18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc7ec
call eax
add eax, 0x10
mov dword [ebp - 0x114], eax
movzx ecx, byte [esi + 7]
movzx edx, byte [esi + 6]
movzx eax, byte [esi + 5]
push ecx
movzx ecx, byte [esi + 4]
push edx
push eax
push ecx
lea edx, [ebp - 0x114]
push str._d._d._d._d
push edx
mov dword [ebp - 4], ebx
call fcn.00401a85
mov esi, dword [ebp - 0x114]
add esi, 0xfffffff0
push esi
call fcn.004014d8
add eax, 0x10
mov dword [edi], eax
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49a322
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
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.0047e4d2
mov esp, ebp
pop ebp
ret
Function at 0x49d4b0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd7e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0049ccd0
test eax, eax
je 0x49d51f
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0049d1e0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 0
jne 0x49d541
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d51f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 0x6c]
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0049d300
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov esi, dword [esi + 0x6c]
push 0
push eax
push edx
push 3
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d5a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49dfa0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c99f8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call fcn.0049d420
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x64]
push eax
push ecx
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 2
call fcn.0049dbf0
test eax, eax
jne 0x49e087
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0049b860
mov eax, dword [ebp - 0x64]
cmp eax, esi
je 0x49e02c
push eax
call fcn.0047d656
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x49e06f
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x49e06f
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49e06f
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], esp
cmp eax, esi
je 0x49e0ad
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, edi
call fcn.0049cb20
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.0049b860
mov eax, dword [ebp - 0x64]
cmp eax, esi
je 0x49e0e4
push eax
call fcn.0047d656
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x49e127
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49e127
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49e127
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49f990
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9d33
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e6c0
mov ebx, dword [edi + 0x14]
lea ecx, [ebp - 0x20]
call fcn.0040e6f0
xor esi, esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49fa35
lea ecx, [ebp - 0xd8]
call fcn.0049d940
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], esi
call fcn.0049db70
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 4
push edx
push eax
push esi
push esi
mov dword [ebp - 0x10], esi
call fcn.004816b2
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x49fa4b
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 0xffffffff
call fcn.0049bad0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
push ecx
push edx
mov ecx, edi
call fcn.0049f880
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp + 0x18]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 2
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x49fa86
xor ebx, ebx
jmp 0x49fb00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e6c0
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 4]
cmp byte [eax + 0xc1], 0
mov byte [ebp - 4], 1
jne 0x49fac7
nop
cmp dword [eax + 0xc], esi
jae 0x49faba
mov eax, dword [eax + 8]
jmp 0x49fabe
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xc1], 0
je 0x49fab0
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], ecx
cmp ecx, eax
je 0x49fadb
cmp esi, dword [ecx + 0xc]
jb 0x49fadb
lea eax, [ebp + 0xc]
jmp 0x49fae1
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [edi + 8]
je 0x49faf4
mov ecx, dword [ebp + 0x10]
add eax, 0x68
push eax
call fcn.0049db70
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040e6f0
mov edx, dword [ebp - 0x10]
push edx
mov ecx, edi
call fcn.0049f030
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 0xffffffff
call fcn.0049bad0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4a0360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.0049d420
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 1
cmp edx, ebx
jne 0x4a03c8
xor eax, eax
jmp 0x4a03df
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a03d0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x50]
call fcn.0040170b
mov edi, dword [ebp + 0xc]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push ebx
mov byte [ebp + 8], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov esi, ecx
sub esi, edx
cmp eax, esi
jbe 0x4a0423
sub edx, ecx
lea esi, [ebp + 8]
push esi
add edx, eax
push edx
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00413ef0
mov ecx, dword [ebp - 0x48]
jmp 0x4a043c
jae 0x4a043f
lea esi, [edx + eax]
cmp esi, ecx
je 0x4a043f
push ebx
push ecx
push esi
call fcn.00480d10
mov ecx, esi
add esp, 0xc
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x4c]
push ebx
push ebx
sub ecx, edx
push ecx
push edx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x4c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0456
sub eax, esi
push eax
lea ecx, [ebp - 0x4c]
call fcn.004146f0
push 4
push str.POST
lea ecx, [ebp - 0x2c]
call fcn.0040170b
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push eax
push 4
push esi
push 0x49fc70
push ebx
push ebx
call fcn.004816b2
mov ecx, dword [ebp - 0x58]
add esp, 0x18
lea edx, [esi + 0x50]
mov dword [ebp + 8], ecx
push edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x5c], eax
call fcn.0040e6c0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 8]
push ecx
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.0049f5c0
mov ecx, eax
call fcn.0049db70
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040e6f0
mov esi, dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 3
call fcn.0049b860
mov eax, dword [ebp - 0x6c]
cmp eax, ebx
je 0x4a04ee
push eax
call fcn.0047d656
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a0510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9e88
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
call fcn.0049d420
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp edx, esi
jne 0x4a0578
xor eax, eax
jmp 0x4a058f
mov eax, edx
lea ebx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4a0580
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x50]
call fcn.0040170b
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00415260
push 4
push str.POST
lea ecx, [ebp - 0x2c]
call fcn.0040170b
lea ecx, [ebp - 0x58]
push ecx
push 4
push edi
push 0x49fc70
push esi
push esi
call fcn.004816b2
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
add esp, 0x18
lea eax, [edi + 0x50]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], edx
call fcn.0040e6c0
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp + 8]
push edx
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 3
call fcn.0049f5c0
mov ecx, eax
call fcn.0049db70
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040e6f0
mov edi, dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.0049b860
mov eax, dword [ebp - 0x6c]
cmp eax, esi
je 0x4a0625
push eax
call fcn.0047d656
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
cmp eax, esi
je 0x4a063e
push eax
call fcn.0047d656
add esp, 4
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 0x14
Function at 0x4a0660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
call fcn.0049d420
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 1
cmp edx, esi
jne 0x4a06c7
xor eax, eax
jmp 0x4a06df
mov eax, edx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4a06d0
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x50]
call fcn.0040170b
lea eax, [ebp - 0x58]
push eax
push 4
push edi
push 0x49fc70
push esi
push esi
call fcn.004816b2
mov ecx, dword [ebp - 0x58]
add esp, 0x18
lea edx, [edi + 0x50]
mov dword [ebp + 8], ecx
push edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x5c], eax
call fcn.0040e6c0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 8]
push ecx
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 2
call fcn.0049f5c0
mov ecx, eax
call fcn.0049db70
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040e6f0
mov edi, dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 3
call fcn.0049b860
mov eax, dword [ebp - 0x6c]
cmp eax, esi
je 0x4a075d
push eax
call fcn.0047d656
add esp, 4
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 4
Function at 0x4a3cd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca516
mov eax, dword fs:[0]
push eax
mov eax, 0x19034
call fcn.0047e8f0
mov eax, dword [0x4fca20]
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 eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x19020], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1901c], eax
cmp eax, 0xffffffff
je 0x4a3edb
xor ebx, ebx
xor esi, esi
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x19030], ebx
mov dword [ebp - 0x1902c], esi
mov dword [ebp - 0x19028], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x19018], ecx
jmp 0x4a3d66
mov eax, dword [ebp - 0x1901c]
push 0
lea ecx, [ebp - 0x19018]
push ecx
push 0x19000
lea edx, [ebp - 0x19010]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x19018]
test eax, eax
je 0x4a3e26
mov ecx, esi
add eax, edi
sub ecx, ebx
mov byte [ebp - 0x19014], 0
cmp eax, ecx
jbe 0x4a3dc1
lea ecx, [ebp - 0x19014]
push ecx
sub ebx, esi
add ebx, eax
push ebx
push esi
lea ecx, [ebp - 0x19030]
call fcn.00413ef0
mov esi, dword [ebp - 0x1902c]
jmp 0x4a3ddd
jae 0x4a3de3
add ebx, eax
cmp ebx, esi
je 0x4a3ddd
push 0
push esi
push ebx
call fcn.00480d10
mov esi, ebx
add esp, 0xc
mov dword [ebp - 0x1902c], esi
mov ebx, dword [ebp - 0x19030]
mov edx, dword [ebp - 0x19018]
push edx
lea eax, [ebp - 0x19010]
push eax
lea ecx, [ebx + edi]
push ecx
call fcn.0047d670
mov ecx, dword [ebp - 0x19020]
mov eax, dword [ecx + 0x5c]
add edi, dword [ebp - 0x19018]
add esp, 0xc
test eax, eax
je 0x4a3e19
mov edx, dword [ecx + 0x60]
push edx
push edi
push 5
call eax
cmp dword [ebp - 0x19018], 0
ja 0x4a3d60
mov esi, dword [ebp - 0x1901c]
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
lea eax, [ebp - 0x19030]
mov ecx, esp
mov dword [ebp - 0x1901c], esp
push eax
call fcn.00414260
lea ecx, [ebp - 0x19040]
push ecx
call fcn.004ac910
add esp, 0x14
mov eax, dword [ebp - 0x1903c]
mov ecx, dword [ebp - 0x19040]
xor edi, edi
sub eax, ecx
mov byte [ebp - 4], 1
je 0x4a3e8c
push edi
lea edx, [ebp - 0x1901c]
push edx
push eax
push ecx
push esi
mov dword [ebp - 0x1901c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x19020]
mov eax, dword [ecx + 0x5c]
cmp eax, edi
je 0x4a3ea2
mov ecx, dword [ecx + 0x60]
push ecx
push edi
push 6
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x19040]
cmp eax, edi
je 0x4a3ebc
push eax
call fcn.0047d656
add esp, 4
mov dword [ebp - 0x19040], edi
mov dword [ebp - 0x1903c], edi
mov dword [ebp - 0x19038], edi
cmp ebx, edi
je 0x4a3edb
push ebx
call fcn.0047d656
add esp, 4
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.0047e4d2
mov esp, ebp
pop ebp
ret 4
Function at 0x4a4740
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd7e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004a39f0
test eax, eax
je 0x4a47af
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004a4470
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 0
jne 0x4a47d1
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a47af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 0x58]
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.004a4530
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov esi, dword [esi + 0x58]
push 0
push eax
push edx
push 3
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a4812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a4838
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a4c70
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca650
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e6c0
mov ebx, dword [edi + 0x14]
lea ecx, [ebp - 0x20]
call fcn.0040e6f0
xor esi, esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4a4cd8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 4
push eax
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x14]
push ecx
push esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.004816b2
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4a4cc2
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
mov ecx, edi
call fcn.004a4be0
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp + 0x18]
push ecx
push 0
lea edx, [ebp - 0x18]
push edx
push 2
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4a4d48
xor ebx, ebx
jmp 0x4a4dbd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e6c0
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x25], 0
mov byte [ebp - 4], 1
jne 0x4a4d84
mov edi, edi
cmp dword [eax + 0xc], esi
jae 0x4a4d7a
mov eax, dword [eax + 8]
jmp 0x4a4d7e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0x25], 0
je 0x4a4d70
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], ecx
cmp ecx, eax
je 0x4a4d98
cmp esi, dword [ecx + 0xc]
jb 0x4a4d98
lea eax, [ebp + 0xc]
jmp 0x4a4d9e
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [edi + 8]
je 0x4a4db1
mov ecx, dword [ebp + 0x10]
add eax, 0x14
push eax
call fcn.00415260
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040e6f0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, edi
call fcn.004a4850
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14