joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405dbd
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x405e1f
and dword [esi + 0x48], 0
mov dword [esi + 0x40], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [esi + 0x44], ecx
push 1
lea ecx, [esi + 0x2c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x405e23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x405e1f
push dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 8]
push eax
xor eax, eax
test edi, edi
setne al
mov dword [ebp - 4], edi
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x405e1f
cmp dword [esi + 0x44], eax
jne 0x405e23
xor eax, eax
jmp 0x405e29
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], eax
leave
ret 8

Function at 0x405e6b
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
cmp esi, eax
mov ebx, ecx
je 0x405f3d
cmp dword [esi], 0x18
jne 0x405f3d
push edi
push dword [esi + 8]
lea edi, [ebp - 4]
call fcn.004069d4
mov eax, dword [esi + 4]
mov edi, dword [ebp - 4]
xor ecx, ecx
cmp eax, ecx
jne 0x405eab
push 0x10000000
push ecx
push ecx
push 1
jmp 0x405f1e
cmp eax, 1
je 0x405f16
cmp dword [edi - 8], ecx
je 0x405f16
push dword [esi + 0x10]
lea eax, [ebx + 0x20]
call fcn.00401d9c
push dword [esi + 0x14]
lea eax, [ebx + 0x24]
call fcn.00401d9c
push dword [esi + 0xc]
mov eax, dword [0x413050]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str.httphttp:___s:_d
push eax
call fcn.00401813
mov esi, dword [ebp - 4]
add esp, 0x10
push 0x10000000
push str._local_
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
lea eax, [esi - 0xc]
cmp eax, dword [0x413054]
je 0x405f29
push eax
call fcn.004018e7
jmp 0x405f29
push 0x10000000
push ecx
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
lea eax, [edi - 0xc]
cmp eax, dword [0x413054]
pop edi
je 0x405f50
push eax
call fcn.004018e7
jmp 0x405f50
push 0x10000000
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
mov ebx, dword [ebx]
test ebx, ebx
jne 0x405f5a
xor eax, eax
jmp 0x405f70
push 0x405f76
push ebx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
leave
ret 4
Function at 0x406129
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push dword [esi]
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
or edx, 0xffffffff
cmp ecx, edx
jne 0x40614c
mov eax, edx
jmp 0x40617d
mov edx, dword [ebp - 4]
push ebx
xor ebx, ebx
xor eax, eax
or edx, ebx
or eax, ecx
cmp dword [esi + 0x20], edi
pop ebx
je 0x40617d
cmp dword [esi + 0x14], edi
je 0x40617d
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 8]
push 0
pop edi
adc edi, dword [esi + 0xc]
cmp edx, edi
ja 0x40617d
jb 0x406179
cmp eax, ecx
ja 0x40617d
mov eax, ecx
mov edx, edi
pop edi
leave
ret

Function at 0x406180
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
mov esi, eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 8]
call fcn.0040620a
test eax, eax
je 0x4061fc
test byte [ebp + 0xf], 0x40
push ebx
jne 0x4061f8
push edi
lea eax, [ebp + 0xc]
push eax
push dword [esi]
xor edi, edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
push ebx
push dword [ebp + 0xc]
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp + 0x18], eax
je 0x4061ea
push ebx
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x2c]
cmp eax, edi
pop edi
je 0x406201
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], ebx
xor eax, eax
inc eax
pop ebx
pop esi
pop ebp
ret 0x14
call fcn.004063b4
xor eax, eax
jmp 0x4061fb

Function at 0x4062f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x406349
cmp dword [esi + 0x14], edi
je 0x406346
cmp dword [esi + 0x1c], edi
je 0x406346
push dword [esi + 0xc]
push dword [esi + 8]
push esi
call fcn.0040634f
and eax, edx
cmp eax, 0xffffffff
je 0x406333
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 4], edi
push dword [esi + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406337
xor eax, eax
jmp 0x40634c
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
adc dword [esi + 0xc], edi
mov dword [esi + 0x20], edi
xor eax, eax
inc eax
pop edi
leave
ret
Function at 0x406b2e
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3f0]
sub esp, 0x470
mov eax, dword [0x413040]
xor eax, ebp
push esi
push edi
mov edi, ecx
mov dword [ebp + 0x3ec], eax
mov eax, dword [edi + 0x28]
test eax, eax
mov dword [ebp - 0x7c], edi
je 0x406b74
lea esi, [eax - 1]
test esi, esi
jl 0x406b74
add edi, 0x24
call fcn.004087e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec esi
jns 0x406b61
mov edi, dword [ebp - 0x7c]
xor esi, esi
cmp dword [ebp + 0x3f8], esi
jle 0x406c52
cmp dword [ebp + 0x3f8], 1
mov eax, dword [0x413050]
mov dword [ebp - 0x7c], eax
jne 0x406b9a
push str.ttcache__.tmp
jmp 0x406ba8
cmp dword [ebp + 0x3f8], 2
jne 0x406bb0
push str..tmp
lea eax, [ebp - 0x7c]
call fcn.00401d9c
push ebx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
lea ecx, [edi + 0x10]
push eax
mov word [ebp + 0x3e0], 0x5c
mov dword [ebp + 0x3e4], esi
mov dword [ebp + 0x3e8], esi
mov word [ebp + 0x1d8], si
call fcn.00407b27
mov eax, dword [eax]
lea ebx, [ebp - 0x78]
call fcn.00405667
mov esi, eax
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
pop ebx
je 0x406bfe
push eax
call fcn.004018e7
test esi, esi
je 0x406c36
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
call fcn.0040542c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x406c2a
push eax
call fcn.004018e7
lea eax, [ebp - 0x78]
call fcn.0040563e
test eax, eax
jne 0x406c02
lea eax, [ebp - 0x78]
call fcn.0040571d
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x406c52
push eax
call fcn.004018e7
mov eax, dword [edi + 0x14]
cmp dword [eax - 8], 0
je 0x406c62
push eax
push edi
call fcn.00407774
mov ecx, dword [ebp + 0x3ec]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f143
add ebp, 0x3f0
leave
ret 4
Function at 0x406c7b
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3fc]
sub esp, 0x47c
mov eax, dword [0x413040]
push ebx
push esi
mov esi, dword [ebp + 0x404]
xor eax, ebp
test esi, esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp + 0x3f8], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
jbe 0x406cbd
push 0
call fcn.004088ce
test eax, eax
pop ecx
je 0x406e3d
cmp dword [ebp + 0x408], 0
je 0x406cd3
lea eax, [edi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x14]
cmp dword [eax - 8], 0
je 0x406e12
lea ebx, [edi + 0x10]
mov eax, dword [ebx]
cmp dword [eax - 8], 0
je 0x406e12
test esi, esi
je 0x406d05
push dword [ebp - 0x7c]
mov eax, ebx
call fcn.00407b0f
test al, al
je 0x406e12
xor eax, eax
push str..tmp
mov dword [ebp + 0x3f0], eax
mov dword [ebp + 0x3f4], eax
mov word [ebp + 0x1e4], ax
push ebx
lea eax, [ebp - 0x70]
push eax
mov word [ebp + 0x3ec], 0x5c
call fcn.004032b9
mov eax, dword [eax]
lea ebx, [ebp - 0x6c]
call fcn.00405667
mov esi, eax
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x406d52
push eax
call fcn.004018e7
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x406d8c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
call fcn.0040542c
push dword [eax]
call ebx
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x406d80
push eax
call fcn.004018e7
lea eax, [ebp - 0x6c]
call fcn.0040563e
test eax, eax
jne 0x406d5c
and dword [ebp - 0x74], 0
cmp dword [edi + 0x3c], 0
jbe 0x406dee
add edi, 0x38
mov dword [ebp - 0x80], edi
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x80]
call fcn.004087e2
mov ecx, dword [eax]
add ecx, 8
lea esi, [ebp - 0x70]
call fcn.00401c29
mov esi, dword [ebp - 0x70]
push esi
call ebx
test eax, eax
jne 0x406dcd
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
add edi, 0x24
call fcn.00407c84
lea eax, [esi - 0xc]
cmp eax, dword [0x413054]
je 0x406dde
push eax
call fcn.004018e7
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [eax + 0x3c]
jb 0x406d9c
mov edi, eax
lea esi, [edi + 0x38]
call fcn.004088b9
lea eax, [edi + 0x50]
call fcn.00407ddd
lea eax, [ebp - 0x6c]
mov dword [edi], 1
call fcn.0040571d
mov esi, dword [ebp + 0x404]
push dword [ebp - 0x7c]
lea eax, [edi + 0x10]
call fcn.00401d9c
and dword [edi + 0xc], 0
shl esi, 0x14
cmp dword [ebp + 0x408], 0
mov dword [edi + 8], esi
je 0x406e3d
add edi, 0x80
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0x3f8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f143
add ebp, 0x3fc
leave
ret 8
Function at 0x407002
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
mov ebx, ecx
je 0x40701e
lea eax, [ebx + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x14]
cmp dword [eax - 8], edi
je 0x407057
push dword [ebp + 8]
lea esi, [ebx + 0x1c]
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x407057
mov eax, dword [esi]
cmp dword [eax - 8], edi
je 0x407057
push 1
push edi
push edi
push ecx
mov ecx, esi
mov esi, esp
call fcn.00401c29
mov ecx, ebx
call fcn.00407002
mov eax, dword [ebx + 0x14]
cmp dword [eax - 8], edi
je 0x40706a
mov eax, dword [ebx + 8]
or eax, dword [ebx + 0xc]
jne 0x40706a
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0x10], edi
jne 0x407072
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0xc], edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x4070c3
push dword [ebp + 0x10]
lea edi, [ebp + 0xc]
call fcn.004069d4
mov edi, dword [ebp + 0xc]
push edi
call esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4070ab
push dword [ebx + 0x18]
push dword [ebx + 0x20]
push edi
call fcn.0040739f
add edi, 0xfffffff4
cmp edi, dword [0x413054]
je 0x4070bc
push edi
call fcn.004018e7
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x4070da
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4070da
lea eax, [ebp + 8]
push eax
lea edi, [ebx + 0x24]
call fcn.00407c84
xor edi, edi
mov eax, dword [ebx + 0x14]
cmp dword [eax - 8], edi
je 0x4070f5
lea eax, [ebx + 0x1c]
call fcn.0040189e
lea eax, [ebx + 0x20]
call fcn.0040189e
mov dword [ebx + 0x18], edi
cmp dword [ebp + 0x14], edi
je 0x407107
add ebx, 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x40711b
push eax
call fcn.004018e7
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4088ce
Capabilities:
Create directory
Get file attributes

Disassembly:
test ebx, ebx
je 0x408974
cmp word [ebx], 0
je 0x408974
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
push 0x5c
pop ebp
push ebp
push ebx
call edi
pop ecx
pop ecx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x408934
mov ax, word [ebx + 2]
cmp ax, 0x3a
jne 0x408910
cmp word [ebx + 4], bp
je 0x408929
cmp word [ebx], bp
jne 0x408934
cmp ax, bp
jne 0x408934
push ebp
add esi, 4
push esi
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40893c
add esi, 2
push ebp
push esi
call edi
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x40893c
and word [esi], 0
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40895b
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
test esi, esi
je 0x408966
test eax, eax
mov word [esi], bp
jne 0x408929
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
and eax, 0x10
pop ebp
ret
xor eax, eax
ret
Function at 0x40941f
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov eax, 0x2494
lea ebp, [esp - 0x2414]
call fcn.0040f370
mov eax, dword [0x413040]
push ebx
xor eax, ebp
push esi
mov esi, edi
mov dword [ebp + 0x2410], eax
call fcn.00409597
mov ebx, 0x10000000
push ebx
push 0
lea esi, [ebp - 0x78]
call fcn.00405ac3
mov eax, dword [edi + 0x80]
mov eax, dword [eax + 8]
push ebx
push eax
mov eax, esi
call fcn.00405b24
test eax, eax
je 0x40957e
xor ebx, ebx
push ebx
push ebx
push 3
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push dword [edi + 0x6c]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [edi + 0x70], eax
je 0x40957e
lea eax, [ebp - 0x80]
push eax
mov eax, esi
call fcn.00405b8c
mov esi, dword [eax]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
call fcn.00405bec
mov eax, dword [eax]
push edi
push 0x80400200
push ebx
push esi
push ebx
push eax
push 0x4107a0
push dword [edi + 0x70]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0x74], eax
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x4094e1
push eax
call fcn.004018e7
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x4094f5
push eax
call fcn.004018e7
cmp dword [edi + 0x74], ebx
je 0x40957e
mov eax, dword [edi + 0x68]
cmp eax, ebx
mov esi, dword [0x413050]
mov dword [ebp - 0x7c], esi
jbe 0x409523
push eax
lea eax, [ebp - 0x7c]
push str.Range:_bytes_u__r_n
push eax
call fcn.00401813
mov esi, dword [ebp - 0x7c]
add esp, 0xc
mov eax, dword [esi - 8]
push ebx
push ebx
push eax
push esi
push dword [edi + 0x74]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x40954d
lea eax, [esi - 0xc]
cmp eax, dword [0x413054]
je 0x409548
push eax
call fcn.004018e7
push 2
pop eax
jmp 0x409580
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
lea eax, [esi - 0xc]
jne 0x409570
cmp eax, dword [0x413054]
je 0x40956b
push eax
call fcn.004018e7
xor eax, eax
inc eax
jmp 0x409580
cmp eax, dword [0x413054]
je 0x40957e
push eax
call fcn.004018e7
xor eax, eax
mov ecx, dword [ebp + 0x2410]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f143
add ebp, 0x2414
leave
ret
Function at 0x40a476
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x78], ebx
je 0x40a48c
call fcn.0040a5cf
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x40a596
cmp dword [eax], 0x18
jne 0x40a596
push edi
push dword [eax + 8]
lea edi, [ebp - 4]
call fcn.004069d4
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x40a4c4
push 0x10000000
push ebx
push ebx
push 1
jmp 0x40a573
cmp ecx, 1
je 0x40a56b
mov ecx, dword [ebp - 4]
cmp dword [ecx - 8], ebx
je 0x40a56b
push dword [eax + 0x10]
lea edi, [ebp - 0x10]
call fcn.004069d4
mov eax, dword [esi + 0x40]
push dword [eax + 0x14]
lea edi, [ebp - 0xc]
call fcn.004069d4
mov eax, dword [0x413050]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x40]
push dword [eax + 0xc]
lea eax, [ebp - 8]
push dword [ebp - 4]
push str.httphttp:___s:_d
push eax
call fcn.00401813
mov edi, dword [ebp - 8]
add esp, 0x10
push 0x10000000
push str._local_
push edi
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x78], eax
lea eax, [edi - 0xc]
cmp eax, dword [0x413054]
je 0x40a541
push eax
call fcn.004018e7
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x40a555
push eax
call fcn.004018e7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x40a57f
push eax
call fcn.004018e7
jmp 0x40a57f
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
pop edi
je 0x40a5aa
push eax
call fcn.004018e7
jmp 0x40a5aa
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x78], eax
mov esi, dword [esi + 0x78]
cmp esi, ebx
jne 0x40a5b5
xor eax, eax
jmp 0x40a5c9
push 0x4093a2
push esi
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
inc eax
neg eax
sbb eax, eax
and eax, 2
pop esi
pop ebx
leave
ret 4

Function at 0x40a5e2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x40a605
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x40a5fa
mov dword [eax], edi
mov ecx, dword [esi + 0x60]
push 2
pop eax
mov dword [ecx + 0xc], eax
jmp 0x40a656
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x60]
mov dword [ebp - 4], edi
push dword [eax]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a63b
mov eax, dword [ebp - 4]
add dword [esi + 0x5c], eax
mov eax, dword [esi + 0x5c]
cmp eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x60]
sbb eax, eax
add eax, 3
mov dword [ecx + 0xc], eax
jmp 0x40a641
mov eax, dword [esi + 0x60]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x40a650
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 0xc]
pop edi
leave
ret 4
Function at 0x40a729
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, eax
call fcn.0040a207
test eax, eax
je 0x40a7cb
push edi
call fcn.0040a23c
test eax, eax
je 0x40a753
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x68]
cmp eax, 0x4e20
jae 0x40a77d
mov eax, ebx
call fcn.0040a6fb
push 0
call fcn.0040a194
lea ecx, [ebx + 0xe4]
or eax, 0xffffffff
xor edi, edi
call fcn.0040b786
mov eax, ebx
call fcn.0040a65b
cmp eax, 2
je 0x40a7ca
mov eax, dword [esp + 0xc]
push esi
add eax, 0x34
lea esi, [ebx + 0x34]
call fcn.00408f6d
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebx + 0x68]
xor edi, edi
inc edi
cmp eax, edi
jae 0x40a7a3
mov eax, edi
jmp 0x40a7a8
call esi
sub eax, dword [ebx + 0x68]
and dword [ebx + 0x68], 0
mov dword [ebx + 0x64], eax
mov eax, ebx
call fcn.0040a6fb
mov eax, dword [ebx + 0x74]
test eax, eax
mov dword [ebx + 0x20], edi
pop esi
je 0x40a7ca
push dword [ebx + 0x70]
push 0
push 3
call eax
pop edi
pop ebx
ret 4
Function at 0x40aca1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x20], 0
mov ebx, eax
je 0x40ae79
cmp dword [ebx + 0x20], 2
mov eax, dword [esi + 0x84]
push edi
mov edi, dword [esi + 0x80]
mov dword [ebp - 0xc], eax
jne 0x40ae4f
push dword [edi + 0x1c]
call fcn.0040a2a0
test eax, eax
jne 0x40ad2a
mov dword [edi + 0xc], 0x50004
mov edi, esi
call fcn.004092a2
call fcn.0040a02b
mov edi, eax
test edi, edi
je 0x40ad1d
push dword [ebx + 0x40]
push dword [ebp - 0xc]
push edi
push dword [ebx + 0x78]
push esi
call fcn.00409202
cmp dword [edi + 0xc], 0
jne 0x40ae78
mov dword [edi + 0xc], 2
jmp 0x40ae78
push esi
mov eax, ebx
call fcn.0040a729
jmp 0x40ae78
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x54], eax
cmp dword [ebx + 0xa8], 0
ja 0x40ad43
push 0x80070057
call fcn.00401657
mov eax, dword [ebx + 0xa4]
push dword [ebx + 0x54]
mov eax, dword [eax]
call fcn.00408e50
lea eax, [esi + 0x34]
lea esi, [ebx + 0x34]
call fcn.00408f6d
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, eax
sub ecx, dword [ebx + 0x68]
xor eax, eax
inc eax
cmp ecx, eax
jb 0x40ad77
call esi
sub eax, dword [ebx + 0x68]
mov dword [ebx + 0x64], eax
call esi
lea ecx, [edi + 8]
lea esi, [ebp - 8]
mov dword [ebx + 0x68], eax
call fcn.00401c29
push str.qianqian.com
mov eax, esi
call fcn.00403278
xor ecx, ecx
mov esi, eax
call fcn.00403292
test eax, eax
jle 0x40adab
lea eax, [ebp - 8]
call fcn.0040189e
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004089f2
push dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x50]
push eax
push dword [ebx + 0x54]
mov eax, ebx
push ecx
call fcn.0040a2dd
mov ecx, dword [ebp - 0xc]
neg eax
sbb al, al
inc al
add ecx, 0xfffffff4
cmp ecx, dword [0x413054]
mov byte [ebp - 1], al
je 0x40ade9
push ecx
call fcn.004018e7
mov al, byte [ebp - 1]
test al, al
je 0x40ae21
mov eax, ebx
call fcn.0040a6fb
mov eax, dword [ebx + 0x74]
test eax, eax
mov dword [ebx + 0x20], 1
je 0x40ae0b
push dword [ebx + 0x70]
push 0
push 3
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x40ae78
push eax
call fcn.004018e7
jmp 0x40ae78
mov eax, dword [ebx + 0x74]
test eax, eax
mov dword [ebx + 0x20], 3
je 0x40ae38
push dword [ebx + 0x70]
push 0
push 1
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x40ae4c
push eax
call fcn.004018e7
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x54]
cmp eax, dword [edi + 0x1c]
jne 0x40ae6a
mov dword [edi + 0xc], 0x10004
push dword [ebx + 0x48]
mov eax, esi
call fcn.00409380
jmp 0x40ae78
mov dword [edi + 0xc], 0x50004
mov edi, esi
call fcn.004092a2
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40bdb1
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x40bde0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0xc]
push eax
push edi
push esi
push 0x40bde6
push edi
push edi
mov dword [eax], edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
xor eax, eax
pop edi
inc eax
pop esi
ret