joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403080
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x492670
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x4b3cc4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 1
lea ebx, [edi + 0x250]
push ebx
mov eax, str.ListTasks
call fcn.00410fd0
push 1
mov dword [edi + 0x3ac], eax
push ebx
mov eax, str.BtnClear
call fcn.00410fd0
mov esi, eax
mov dword [edi + 0x3b0], esi
test esi, esi
je 0x403111
xor ecx, ecx
push ecx
mov eax, 0x4036f0
push eax
mov ecx, edi
lea eax, [esp + 0x1c]
call fcn.00406bf0
add esp, 8
add esi, 0x13c
mov ecx, eax
mov dword [esp + 0x38], 0
call fcn.004102a0
mov dword [esp + 0x38], 0xffffffff
push 1
push ebx
mov eax, str.BtnSetting
call fcn.00410fd0
mov esi, eax
mov dword [edi + 0x3b4], esi
test esi, esi
je 0x40315e
xor ecx, ecx
push ecx
mov eax, 0x4039d0
push eax
mov ecx, edi
lea eax, [esp + 0x1c]
call fcn.00406bf0
add esp, 8
add esi, 0x13c
mov ecx, eax
mov dword [esp + 0x38], 1
call fcn.004102a0
mov dword [esp + 0x38], 0xffffffff
push 1
push ebx
mov eax, str.ChkAutoInstall
call fcn.00410fd0
push str.download.ini
mov dword [edi + 0x3b8], eax
lea esi, [edi + 0x3c8]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00401f20
mov eax, dword [eax]
add esp, 0xc
push eax
push 1
push str.autoinstall
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x3b8]
test ecx, ecx
je 0x4031db
test ebx, ebx
je 0x4031db
mov edx, dword [ecx]
mov eax, dword [edx + 0x1a4]
push 1
call eax
mov eax, dword [edi + 0x3a8]
push ecx
sub eax, 0x10
mov dword [esp + 0x14], esp
mov ebx, esp
push eax
call fcn.004021f0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00401c30
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x14], esp
mov ebx, esp
push eax
call fcn.004021f0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00401c30
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x14], esp
mov ebx, esp
push eax
call fcn.004021f0
add esp, 4
add eax, 0x10
push edi
mov dword [ebx], eax
call fcn.00403fe0
mov esi, dword [edi + 0x3c0]
mov ecx, 0x498dd4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40326e
test dx, dx
je 0x40326a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40326e
add eax, 4
add ecx, 4
test dx, dx
jne 0x403248
xor eax, eax
jmp 0x403273
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40328b
mov ecx, dword [edi + 0x3c4]
push ecx
mov ecx, dword [edi + 0x3a8]
push esi
push edi
call fcn.00404de0
mov byte [edi + 0x3bc], 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x4ba498]
test eax, eax
jne 0x40365e
mov eax, dword [0x4ba494]
push esi
push 0x499118
push 0x79
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4036df
mov eax, dword [0x4ba498]
test eax, eax
jne 0x403681
mov eax, dword [0x4ba494]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4036de
mov eax, dword [0x4ba498]
test eax, eax
jne 0x40369e
mov eax, dword [0x4ba494]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4036de
push esi
call fcn.004658ad
add esp, 4
mov dword [0x4b9780], eax
test eax, eax
je 0x4036d5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [0x4b9780]
push eax
call fcn.00478e50
add esp, 0xc
push esi
call fcn.00411db0
add esp, 4
pop edi
pop esi
ret
Function at 0x404340
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x490a98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
mov eax, dword [0x4b3cc4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [edi + 0x3ac]
test eax, eax
je 0x4044b5
lea ecx, [eax + 0x634]
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
test eax, eax
je 0x40438e
mov eax, dword [eax + 0x69c]
jmp 0x404390
xor eax, eax
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.004021f0
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], 0
mov eax, dword [edi + 0x3ac]
lea ecx, [eax + 0x634]
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
test eax, eax
je 0x4043cd
mov eax, dword [eax + 0x69c]
jmp 0x4043cf
xor eax, eax
mov eax, dword [eax + 0x10]
sub eax, 0x10
push eax
call fcn.004021f0
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x498e94
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x34], 1
call fcn.00401f20
lea edx, [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x40], 2
call fcn.00401e60
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404438
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push 5
push 0
push 0
push ecx
push 0x498e98
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404470
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404491
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x1c
ret

Function at 0x4044d0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [eax + 0x3ac]
test eax, eax
je 0x404546
mov edx, dword [eax + 0x634]
mov edx, dword [edx]
lea ecx, [eax + 0x634]
mov eax, dword [esp + 4]
push eax
call edx
test eax, eax
je 0x4044fb
mov eax, dword [eax + 0x69c]
jmp 0x4044fd
xor eax, eax
mov eax, dword [eax + 0x10]
sub eax, 0x10
push esi
push eax
call fcn.004021f0
add esp, 4
push 5
push 0
mov esi, eax
push 0
add esi, 0x10
push esi
push 0x498e98
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x404546
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 4], eax
mov eax, dword [edx + 4]
jmp eax
ret 4
Function at 0x404940
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x490a58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4b3cc4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov esi, ecx
mov eax, dword [esi + 0x3ac]
lea ecx, [eax + 0x634]
mov eax, dword [ecx]
mov edx, dword [eax]
push ebp
call edx
mov edi, eax
cmp dword [edi + 0x6b8], 0
je 0x40499c
mov ecx, dword [edi + 0x6b8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
push 1
call edx
cmp dword [edi + 0x6bc], 0
je 0x4049b7
mov ecx, dword [edi + 0x6bc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
push 0
call edx
cmp dword [edi + 0x6b0], 0
je 0x4049d2
mov ecx, dword [edi + 0x6b0]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
push 1
call edx
mov edi, dword [edi + 0x694]
push edi
call fcn.00405600
cmp dword [esp + 0x2c], 0
je 0x404b2a
mov eax, dword [esi + 0x3ac]
test eax, eax
je 0x404b2a
lea ecx, [eax + 0x634]
mov eax, dword [ecx]
mov edx, dword [eax]
push ebp
call edx
test eax, eax
je 0x404a10
mov eax, dword [eax + 0x69c]
jmp 0x404a12
xor eax, eax
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.004021f0
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x3ac]
lea ecx, [eax + 0x634]
mov eax, dword [ecx]
mov edx, dword [eax]
push ebp
call edx
test eax, eax
je 0x404a4f
mov eax, dword [eax + 0x69c]
jmp 0x404a51
xor eax, eax
mov eax, dword [eax + 0x10]
sub eax, 0x10
push eax
call fcn.004021f0
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
push 0x498e94
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x30], 1
call fcn.00401f20
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x3c], 2
call fcn.00401e60
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404aba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404ae5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
Function at 0x404c80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b3cc4]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004768f0
push str.download.ini
lea edx, [edi + 0x3c8]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00401f20
mov ecx, dword [eax]
add esp, 0x18
push ecx
push 0x104
lea edx, [esp + 0x10]
push edx
push 0x498dd4
push 0x499238
push str.DownLoadUrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 8], esp
push edx
call fcn.004012f0
call fcn.00404b40
mov eax, dword [edi + 0x3c4]
mov ecx, dword [edi + 0x3c0]
push eax
push ecx
mov ecx, dword [edi + 0x3a8]
push edi
call fcn.00404de0
mov ecx, dword [esp + 0x210]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00472007
add esp, 0x210
ret
Function at 0x405600
Capabilities:
Terminate thread

Disassembly:
mov ecx, dword [esi + 0x3f4]
sub ecx, dword [esi + 0x3f0]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
push ebp
mov ebp, dword [esp + 8]
mov eax, edx
push edi
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x405764
push ebx
xor ebx, ebx
lea ecx, [ecx]
mov ecx, dword [esi + 0x3f4]
sub ecx, dword [esi + 0x3f0]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x405655
call fcn.00472e89
mov edx, dword [esi + 0x3f0]
mov ecx, dword [esi + 0x3f4]
sub ecx, edx
mov eax, 0x2aaaaaab
cmp dword [edx + ebx + 8], ebp
je 0x405687
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0xc
cmp edi, eax
jb 0x405630
pop ebx
pop edi
pop ebp
ret 4
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x40569b
call fcn.00472e89
mov edx, dword [esi + 0x3f0]
lea ebp, [edi + edi*2]
add ebp, ebp
add ebp, ebp
mov ebx, dword [edx + ebp]
cmp dword [ebx + 4], 0
je 0x4056e9
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebx + 0x14]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4056d4
mov edx, dword [ebx + 0x14]
push edx
jmp 0x4056ed
mov eax, dword [ebx + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebx + 4], 0
jmp 0x4056f3
mov ecx, dword [ebx + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
call fcn.0040d1a0
mov ecx, dword [esi + 0x3f4]
sub ecx, dword [esi + 0x3f0]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40571e
call fcn.00472e89
mov ecx, dword [esi + 0x3f0]
or ebx, 0xffffffff
mov dword [ecx + ebp + 8], ebx
mov ecx, dword [esi + 0x3f4]
sub ecx, dword [esi + 0x3f0]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x405750
call fcn.00472e89
mov ecx, dword [esi + 0x3f0]
mov ebp, dword [ecx + ebp + 4]
mov edx, dword [esi + 4]
mov dword [ebp + 8], ebx
mov dword [ebp + 4], edx
pop ebx
pop edi
pop ebp
ret 4

Function at 0x40a220
Capabilities:
Terminate thread

Disassembly:
cmp dword [esi + 4], 0
je 0x40a26e
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a254
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
call fcn.0040d1a0
ret
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
mov dword [esi + 4], 0
call fcn.0040d1a0
ret
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
call fcn.0040d1a0
ret
Function at 0x40b200
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x4907e8
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x4b3cc4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
cmp dword [esi + 0x94], 0
jne 0x40b2e4
call fcn.0046592b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b249
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push 0x2f
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98_
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004015e0
mov ecx, dword [esi + 0x3c]
mov edi, dword [esp + 8]
push 0x10000000
push 0
push 0
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x94], eax
test eax, eax
jne 0x40b29a
push eax
push eax
call fcn.004688ae
mov edx, dword [esi + 0x94]
push 0x40c370
push edx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
jne 0x40b2ba
push 0
push 0
call fcn.004688ae
push esi
call fcn.00409a10
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret

Function at 0x40b350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
cmp dword [esi + 0x78], 0
jne 0x40b389
cmp dword [esi + 0x6c], 0
je 0x40b38f
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40b382
mov ecx, dword [esi + 0x70]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
test eax, eax
jne 0x40b389
mov dword [esi + 0x6c], 0
cmp dword [esi + 0x6c], 0
jne 0x40b3c4
mov eax, dword [esi + 0xa0]
push 0
lea edx, [esp + 0x10]
push edx
push edi
push ebp
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b3bd
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b3bd
cmp edi, eax
je 0x40b3eb
pop esi
xor eax, eax
pop ebp
ret 4
mov ecx, dword [esi + 0x74]
add ecx, edi
cmp ecx, dword [esi + 0x70]
jbe 0x40b3d7
call fcn.0040b400
test eax, eax
je 0x40b3bd
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x78]
push edi
push ebp
push edx
call fcn.00478e50
add esp, 0xc
add dword [esi + 0x74], edi
pop esi
mov eax, 1
pop ebp
ret 4
Function at 0x40c2c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x490038
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b3cc4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x30]
call fcn.0040d580
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], 0
cmp eax, 0x29
je 0x40c331
cmp eax, 0x3c
je 0x40c32a
cmp eax, 0x64
jne 0x40c331
mov edx, dword [esi + 0x12c]
mov ecx, dword [edi + 4]
push edx
mov dword [esi + 0x128], ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40c331
mov eax, edi
call fcn.0040c3c0
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c359
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
Function at 0x40c440
Capabilities:
Get http content length

Disassembly:
push 0xffffffffffffffff
push 0x4911c6
mov eax, dword fs:[0]
push eax
sub esp, 0x614
mov eax, dword [0x4b3cc4]
xor eax, esp
mov dword [esp + 0x610], eax
push ebx
push ebp
push esi
mov eax, dword [0x4b3cc4]
xor eax, esp
push eax
lea eax, [esp + 0x624]
mov dword fs:[0], eax
mov eax, dword [esp + 0x638]
mov ebp, dword [esp + 0x634]
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.00401570
call fcn.0046592b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c4ad
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x62c], 0
mov ebx, dword [ebp + 0x9c]
lea esi, [esp + 0x10]
mov eax, 0x2f
call fcn.0040eb50
mov ebx, dword [esp + 0x10]
test eax, eax
je 0x40c58b
mov eax, dword [ebx - 0xc]
test eax, eax
jg 0x40c4f4
or esi, 0xffffffff
jmp 0x40c50e
push 0x22
push ebx
call fcn.00473bc5
add esp, 8
test eax, eax
jne 0x40c508
or esi, 0xffffffff
jmp 0x40c50e
sub eax, ebx
sar eax, 1
mov esi, eax
push 0x22
push ebx
call fcn.00472813
add esp, 8
test eax, eax
jne 0x40c522
or eax, 0xffffffff
jmp 0x40c526
sub eax, ebx
sar eax, 1
test esi, esi
jle 0x40c60c
cmp eax, esi
jle 0x40c60c
sub eax, esi
dec eax
push eax
inc esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040d820
push eax
mov ecx, edi
mov byte [esp + 0x630], 1
call fcn.00402060
mov byte [esp + 0x62c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c60c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c60c
mov eax, dword [ebp + 0xcc]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x224]
push edx
lea ecx, [esp + 0x428]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00474a95
lea eax, [esp + 0x234]
add esp, 0x14
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c5c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x224]
push eax
mov ecx, edi
call fcn.004015e0
cmp word [esp + 0x20], 0
je 0x40c60c
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c5f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00405900
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 0x9c]
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push 0x20000005
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40c648
mov dword [esi], 0xffffffff
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
push 0
mov ecx, ebp
call edx
cmp dword [ebp + 0x4c], 0
jne 0x40c654
mov dword [esi], 0xffffffff
lea eax, [ebx - 0x10]
mov dword [esp + 0x62c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c67b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x624]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x610]
xor ecx, esp
call fcn.00472007
add esp, 0x620
ret 8
Function at 0x40c720
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, eax
test byte [esi + 0x54], 4
mov ebx, dword [esi + 0xd4]
push edi
mov edi, dword [esi + 0xe4]
je 0x40c761
call fcn.0040e120
test eax, eax
je 0x40c761
push esi
push 0x8001
mov dword [esp + 0x18], ebx
push eax
mov ecx, 8
lea ebx, [esp + 0x1c]
mov dword [esp + 0x20], edi
call fcn.0040e3f0
cmp dword [esi + 0x68], 0
jne 0x40c787
mov eax, dword [esi + 0x64]
push eax
call fcn.004658ad
add esp, 4
mov dword [esi + 0x68], eax
test eax, eax
jne 0x40c787
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea ebp, [esi + 0xa4]
xor eax, eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], eax
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0xe4]
mov dword [ebp], 0x28
mov dword [esi + 0xb8], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x64]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jbe 0x40c7d1
mov eax, ecx
push esi
push 1
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0x9c]
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x40c85b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40c801
push eax
push 0
call fcn.004688ae
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x20]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, edi
jae 0x40c83b
test eax, eax
jl 0x40c8be
cmp eax, dword [esi + 0x20]
jge 0x40c8be
mov ecx, dword [esi + 0x1c]
mov ebx, dword [ecx + eax*4]
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp ebx, dword [esi + 8]
je 0x40c8b1
cmp ebx, dword [esi + 0x12c]
jne 0x40c77a
mov eax, dword [esi + 0x128]
test eax, eax
je 0x40c86b
push eax
push 0
call fcn.004688ae
jmp 0x40c86b
mov edx, dword [esi + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40c8a7
mov edi, dword [esi + 0xbc]
test edi, edi
je 0x40c8c3
mov eax, dword [esi + 0xb8]
add dword [esi + 0xe0], edi
sub dword [esp + 0x10], edi
push eax
mov eax, esi
call fcn.0040b350
test eax, eax
je 0x40c909
test byte [esi + 0x54], 0x10
je 0x40c7c4
mov ebx, esi
call fcn.0040d040
jmp 0x40c7c4
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call fcn.00465b3b
call fcn.0040b400
test eax, eax
je 0x40c909
mov eax, dword [esi + 0xe4]
cmp eax, 0xffffffff
je 0x40c8eb
cmp eax, dword [esi + 0xe0]
je 0x40c8eb
mov dword [esi + 0xdc], 4
jmp 0x40c913
mov dword [esi + 0xd8], 2
mov dword [esi + 0xdc], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [esi + 0xdc], 5
pop edi
mov dword [esi + 0xd8], 3
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret