joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401146
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40115b
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40116d
xor eax, eax
jmp 0x40119f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401191
cmp esi, eax
jae 0x401169
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401183
cmp esi, eax
jae 0x401169
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x401272
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
shl eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4012d0
cmp dword [ebp + 0x10], 1
je 0x4012ae
cmp dword [ebp + 0x10], 2
jne 0x4012c5
test edi, edi
mov eax, dword [ebp - 4]
je 0x4012ca
test al, 1
jne 0x4012c5
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4012ca
push 0xd
pop eax
jmp 0x4012d0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x4013ff
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x4492b0
call fcn.0042da20
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 8]
and dword [ebx], 0
push 4
push 0x2000
shl eax, 0xa
push eax
push 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
je 0x4014a1
mov dword [ebp - 0x24], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4014a1
and dword [ebp - 4], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0042d8c9
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x4014a3
xor eax, eax
call fcn.0042da5b
ret

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

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x401640
cmp word [edi], 0
je 0x401640
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
mov edi, eax
call esi
cmp edi, 0xffffffff
pop esi
pop ebx
je 0x401640
mov eax, edi
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
pop edi
mov eax, ecx
ret
xor eax, eax
pop edi
ret
Function at 0x401815
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x401871
cmp dword [esi + 0x14], edi
je 0x40186e
cmp dword [esi + 0x1c], edi
je 0x40186e
push edi
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00401744
and eax, edx
cmp eax, 0xffffffff
je 0x40185b
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 0x40185f
xor eax, eax
jmp 0x401874
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
pop esi
leave
ret

Function at 0x401a3d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44dcf8]
lea ecx, [ebp - 0x20c]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
push ecx
push eax
push eax
je 0x401a77
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x401a7b
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0042da10
leave
ret
push 0x1a
jmp 0x401a60
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x210]
push eax
call fcn.00401b2d
push str.BaiduTTPlayer_
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00401deb
mov ecx, dword [ebp + 8]
push eax
call fcn.00401b9b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x401ab8
call fcn.004013ad
mov ecx, dword [ebp - 0x210]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x401ace
call fcn.004013ad
xor eax, eax
inc eax
jmp 0x401a6d

Function at 0x402978
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov esi, ecx
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 0x40299e
mov eax, edx
jmp 0x4029cf
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 0x4029cf
cmp dword [esi + 0x14], edi
je 0x4029cf
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 8]
push 0
pop edi
adc edi, dword [esi + 0xc]
cmp edx, edi
ja 0x4029cf
jb 0x4029cb
cmp eax, ecx
ja 0x4029cf
mov eax, ecx
mov edx, edi
pop edi
pop esi
leave
ret

Function at 0x402ac3
Capabilities:
Parse url

Disassembly:
push esi
mov esi, ecx
push edi
push esi
push dword [esp + 0x14]
mov eax, 0x81
push 0
push dword [esp + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov eax, 0x801
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x402b22
push 0x3f
push dword [esp + 0x10]
call fcn.0042cced
test eax, eax
pop ecx
pop ecx
je 0x402b22
push eax
add esi, 0x1486
push esi
call fcn.0042d9c3
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x402c7a
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, ecx
je 0x402d4c
cmp dword [esi], 0x18
jne 0x402d4c
push dword [esi + 8]
lea ecx, [ebp + 8]
call fcn.00401b2d
mov eax, dword [esi + 4]
cmp eax, ebx
mov ebx, dword [ebp + 8]
jne 0x402cba
push 0x10000000
push 0
push 0
push 1
jmp 0x402d2f
cmp eax, 1
je 0x402d25
cmp dword [ebx - 8], 0
je 0x402d25
push dword [esi + 0x10]
lea ecx, [edi + 0x20]
call fcn.00401bea
push dword [esi + 0x14]
lea ecx, [edi + 0x24]
call fcn.00401bea
push dword [esi + 0xc]
mov eax, dword [0x452170]
push ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push str.httphttp:___s:_d
push eax
call fcn.00401d58
mov esi, dword [ebp + 8]
add esp, 0x10
push 0x10000000
push str._local_
push esi
push 3
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
lea ecx, [esi - 0xc]
mov dword [edi], eax
cmp ecx, dword [0x452174]
je 0x402d3a
call fcn.004013ad
jmp 0x402d3a
push 0x10000000
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi], eax
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x452174]
je 0x402d5f
call fcn.004013ad
jmp 0x402d5f
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi], eax
mov edi, dword [edi]
test edi, edi
jne 0x402d69
xor eax, eax
jmp 0x402d7f
push 0x403192
push edi
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x403122
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 0x403184
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 0x403188
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403184
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 0x403184
cmp dword [esi + 0x44], eax
jne 0x403188
xor eax, eax
jmp 0x40318e
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], eax
leave
ret 8

Function at 0x405243
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov esi, ecx
je 0x405260
push dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.00401e8c
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405283
xor al, al
jmp 0x4052d5
push 0x2000
lea ecx, [ebp - 0x14]
call fcn.0040478b
push dword [ebp + 0xc]
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call dword [eax + 8]
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push ebx
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x4464e0
call fcn.0042d0b1
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405db7
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
sub esp, 0x28
push ebx
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 4]
xor edi, edi
cmp dword [esi], edi
mov dword [esp + 0x10], ebx
je 0x405ed8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push dword [ebx + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x3c]
push 0x14
push edi
push esi
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, edi
je 0x405ed7
cmp eax, 1
jne 0x405ea8
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x405ea8
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
push edi
push edi
mov ebx, eax
cmp ebx, edi
lea eax, [esp + 0x24]
push edi
push eax
je 0x405e42
call dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x405e48
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, edi
jle 0x405e6e
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp ebx, edi
lea eax, [esp + 0x1c]
push eax
je 0x405e68
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x405e6e
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405e9c
call ebp
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x40]
jae 0x405e9c
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x405e22
jmp 0x405ea4
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x14]
call ebp
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x40]
jb 0x405ebc
mov dword [esp + 0x10], 1
cmp dword [esp + 0x10], edi
je 0x405dea
mov eax, dword [esi]
cmp eax, edi
je 0x405ed7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi], edi
pop ebp
mov dword [ebx + 0xc], edi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
add esp, 0x28
ret 8
Function at 0x4081bc
Capabilities:
Delete file

Disassembly:
mov eax, 0x43d713
call fcn.0042e160
sub esp, 0x10
mov eax, dword [esi + 0x20]
shl eax, 0x14
test eax, eax
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
push edi
jge 0x4081e0
fadd qword [0x449280]
fmul qword [0x4492e0]
call fcn.0042e60c
mov ecx, dword [esi + 0xe4]
xor edx, edx
cmp ecx, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xe0]
ja 0x408224
jb 0x408207
cmp eax, dword [ebp - 0x1c]
jae 0x408224
mov edi, eax
mov eax, dword [ebp - 0x1c]
sub eax, edi
sbb edx, ecx
mov dword [ebp - 0x14], edx
jne 0x4082d5
cmp eax, 0x500000
ja 0x4082d5
mov eax, dword [esi + 0xd4]
dec eax
push ebx
mov dword [ebp - 0x10], eax
lea ebx, [esi + 0xd0]
mov eax, ebx
call fcn.004064c0
mov eax, dword [esi + 0xe0]
mov ecx, dword [esi + 0xe4]
mov edi, 0xa00000
add eax, edi
adc ecx, 0
xor edx, edx
cmp ecx, edx
jb 0x4082d4
ja 0x40825f
cmp eax, dword [ebp - 0x1c]
jbe 0x4082d4
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x4082d4
mov ecx, ebx
call fcn.00405a27
push eax
lea ecx, [ebp - 0x14]
call fcn.00401afa
and dword [ebp - 4], 0
push dword [ebp - 0x14]
call fcn.00401601
test eax, eax
pop ecx
je 0x408294
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40829c
push dword [ebp - 0x10]
call fcn.00406460
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff4
dec dword [ebp - 0x10]
cmp ecx, dword [0x452174]
je 0x4082b6
call fcn.004013ad
mov ecx, dword [esi + 0xe0]
mov eax, dword [esi + 0xe4]
add ecx, edi
adc eax, 0
xor edx, edx
cmp eax, edx
ja 0x40825f
jb 0x4082d4
cmp ecx, dword [ebp - 0x1c]
ja 0x40825f
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x40a6f5
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x4492a0
call fcn.0042da20
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 8]
and dword [ebx], 0
push 4
push 0x2000
shl eax, 0xa
push eax
push 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
je 0x40a797
mov dword [ebp - 0x24], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40a797
and dword [ebp - 4], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0042e35e
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x40a799
xor eax, eax
call fcn.0042da5b
ret

Function at 0x40a8ad
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x44dcf8]
push ebx
push esi
push edi
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x20000005
push dword [ebp + 0xc]
mov esi, SysReAllocString
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40a8ec
mov dword [ebp - 0x70], esi
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
and dword [ebp + 0xc], 0
call ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x74]
cmp eax, 0x64
jb 0x40a906
push 0x64
pop eax
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
push 0xea60
push eax
lea ecx, [ebp - 0x6c]
call fcn.00403122
mov esi, eax
test esi, esi
jbe 0x40a93a
mov edi, dword [ebp + 0x10]
cmp dword [edi], 0
jne 0x40a92f
call ebx
sub eax, dword [ebp - 0x78]
mov dword [edi], eax
add dword [ebp + 0xc], esi
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x70]
jb 0x40a8fb
call ebx
sub eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x14]
pop edi
test esi, esi
pop esi
mov dword [ecx], eax
pop ebx
jne 0x40a958
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x70]
jae 0x40a958
or eax, 0xffffffff
jmp 0x40a95b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.0042da10
leave
ret 0x14
Function at 0x40a967
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0042db90
mov eax, dword [0x44dcf8]
and dword [ebp - 0x1014], 0
push ebx
push esi
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x20000005
push dword [ebp + 0x10]
mov esi, SysReAllocString
mov dword [ebp - 0x100c], esi
mov dword [ebp - 0x1010], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40a9c2
mov dword [ebp - 0x100c], esi
mov eax, dword [0x452170]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x100c]
cmp eax, esi
je 0x40a9d7
inc eax
jmp 0x40a9dc
mov eax, 0x2000
push eax
lea ecx, [ebp + 0x10]
call fcn.00401eb3
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.00401ee8
mov ebx, dword [ebp + 0x10]
push edi
mov eax, 0x1000
cmp dword [ebp - 0x1010], eax
jae 0x40aa06
mov eax, dword [ebp - 0x1010]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push 0xea60
push eax
lea ecx, [ebp - 0x1008]
call fcn.00403122
test eax, eax
jbe 0x40aa46
mov byte [ebp + eax - 0x1008], 0
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp + 0x10]
call fcn.004046b5
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx - 8]
cmp eax, dword [ebp - 0x100c]
jl 0x40a9f3
mov eax, dword [ebp - 0x100c]
cmp dword [ebx - 8], eax
pop edi
jl 0x40aa57
lea eax, [ebp + 0x10]
jmp 0x40aa6e
push 0x446445
lea ecx, [ebp + 0x14]
call fcn.004045fc
mov dword [ebp - 0x1014], 1
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00401e46
test byte [ebp - 0x1014], 1
je 0x40aa93
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40aa93
call fcn.004013ad
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x452174]
pop esi
pop ebx
je 0x40aaa5
call fcn.004013ad
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
call fcn.0042da10
leave
ret 0x10
Function at 0x40aab4
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2490
call fcn.0042db90
mov eax, dword [0x44dcf8]
push ebx
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [ebp - 4], eax
je 0x40aadb
mov eax, 0x80004005
jmp 0x40abfc
push edi
mov edi, 0x10000000
push edi
push ebx
lea ecx, [ebp - 0x248c]
call fcn.00402a5e
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x248c]
call fcn.00402ac3
test eax, eax
jne 0x40ab0b
mov eax, 0x80004005
jmp 0x40abfb
push ebx
push ebx
push 3
push dword [ebp - 0x2468]
push dword [ebp - 0x2470]
push dword [ebp - 0x2474]
push dword [ebp - 0x247c]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x40ab01
lea eax, [ebp - 0x2490]
push eax
lea ecx, [ebp - 0x248c]
call fcn.00402b29
mov edi, eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x248c]
call fcn.00402b8c
mov edi, dword [edi]
mov eax, dword [eax]
push esi
push 0x84400200
push ebx
push edi
push ebx
push eax
push 0x445e7c
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
mov dword [esi + 8], eax
cmp ecx, dword [0x452174]
je 0x40ab8b
call fcn.004013ad
mov ecx, dword [ebp - 0x2490]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40aba1
call fcn.004013ad
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40abed
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40abf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x40abed
mov eax, dword [esi + 0x18]
push 0xc
pop ecx
xor edx, edx
div ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
neg eax
mov dword [ebp + 8], eax
je 0x40abf2
mov ebx, 0x80004005
mov ecx, esi
call fcn.004030dc
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0042da10
leave
ret 4
Function at 0x40ac09
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x40ac57
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40ac27
call fcn.004013ad
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40ac3a
call fcn.004013ad
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40ac4d
call fcn.004013ad
mov eax, 0x80004005
jmp 0x40ad8f
push edi
mov edi, dword [ebp + 0x10]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push edi
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40acb3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40ac86
call fcn.004013ad
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40ac99
call fcn.004013ad
lea ecx, [edi - 0xc]
cmp ecx, dword [0x452174]
je 0x40aca9
call fcn.004013ad
mov eax, 0x80004005
jmp 0x40ad8e
mov edi, dword [ebp + 8]
push esi
push 0x84400200
push ebx
push edi
push ebx
push dword [ebp + 0xc]
push 0x447ab0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x40ad1a
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40ad4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x40ad1a
mov eax, dword [esi + 0x18]
push 0xc
pop ecx
xor edx, edx
div ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
neg eax
mov dword [ebp + 8], eax
je 0x40ad4f
mov ecx, esi
call fcn.004030dc
lea ecx, [edi - 0xc]
cmp ecx, dword [0x452174]
je 0x40ad31
call fcn.004013ad
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40ad44
call fcn.004013ad
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff4
jmp 0x40ac9c
mov ecx, esi
call fcn.004030dc
lea ecx, [edi - 0xc]
cmp ecx, dword [0x452174]
je 0x40ad66
call fcn.004013ad
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40ad79
call fcn.004013ad
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40ad8c
call fcn.004013ad
xor eax, eax
pop edi
pop ebx
pop ebp
ret 0xc