joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c8a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x408cb8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x408cbf
cmp ebx, dword [eax + 4]
jae 0x408cbf
xor eax, eax
jmp 0x408eaf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408cd0
xor eax, eax
inc eax
jmp 0x408eae
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408ce6
cmp ecx, edx
jae 0x408e2b
cmp dword [eax + 4], 0
je 0x408cef
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408cd7
cmp dword [ebp + 8], 0
je 0x408d11
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408e2b
cmp eax, esi
jae 0x408e2b
mov eax, dword [0x403c90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x408d36
cmp dword [esi*4 + 0x403c98], edi
je 0x408e2f
inc esi
cmp esi, eax
jl 0x408d24
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x401074]
test eax, eax
je 0x408eab
cmp dword [ebp - 8], 0x1000000
jne 0x408eab
test byte [ebp - 0xc], 0xcc
je 0x408db4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x408eab
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408eab
cmp word [eax + 0x18], 0x10b
jne 0x408eab
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x408eab
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x408db4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x408db4
test byte [ecx + 0x27], 0x80
jne 0x408e2b
push 1
push 0x403cd8
call dword [0x401048]
test eax, eax
jne 0x408cc8
mov ecx, dword [0x403c90]
test ecx, ecx
mov edx, ecx
jle 0x408de8
lea eax, [ecx*4 + 0x403c94]
cmp dword [eax], edi
je 0x408de8
dec edx
sub eax, 4
test edx, edx
jg 0x408ddc
test edx, edx
jne 0x408e19
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408df5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408e0d
lea eax, [edx*4 + 0x403c98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408dfb
cmp ecx, 0x10
jge 0x408e19
inc ecx
mov dword [0x403c90], ecx
push 0
push 0x403cd8
call dword [0x401048]
jmp 0x408cc8
xor eax, eax
jmp 0x408eae
test esi, esi
jle 0x408cc8
mov ebx, dword [0x401048]
push 1
push 0x403cd8
call ebx
test eax, eax
jne 0x408cc8
cmp dword [esi*4 + 0x403c98], edi
je 0x408e85
mov eax, dword [0x403c90]
lea esi, [eax - 1]
test esi, esi
jl 0x408e73
cmp dword [esi*4 + 0x403c98], edi
je 0x408e6f
dec esi
jns 0x408e63
test esi, esi
jge 0x408e83
cmp eax, 0x10
jge 0x408e7e
inc eax
mov dword [0x403c90], eax
lea esi, [eax - 1]
jmp 0x408e85
je 0x408e9d
xor ecx, ecx
test esi, esi
jl 0x408e9d
lea eax, [ecx*4 + 0x403c98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x408e8b
push 0
push 0x403cd8
call ebx
jmp 0x408cc8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
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 0x4013c4
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x44a438
call fcn.0042dc90
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 0x401466
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 0x401466
and dword [ebp - 4], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0042db39
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x401468
xor eax, eax
call fcn.0042dccb
ret

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

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x401605
cmp word [edi], 0
je 0x401605
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 0x401605
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 0x4017da
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 0x401836
cmp dword [esi + 0x14], edi
je 0x401833
cmp dword [esi + 0x1c], edi
je 0x401833
push edi
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00401709
and eax, edx
cmp eax, 0xffffffff
je 0x401820
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 0x401824
xor eax, eax
jmp 0x401839
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 0x401a02
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44ecf8]
lea ecx, [ebp - 0x20c]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
push ecx
push eax
push eax
je 0x401a3c
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x401a40
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0042dc80
leave
ret
push 0x1a
jmp 0x401a25
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x210]
push eax
call fcn.00401af2
push str.BaiduTTPlayer_
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00401dc3
mov ecx, dword [ebp + 8]
push eax
call fcn.00401b73
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x401a7d
call fcn.004013ad
mov ecx, dword [ebp - 0x210]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x401a93
call fcn.004013ad
xor eax, eax
inc eax
jmp 0x401a32

Function at 0x4028c7
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 0x4028ed
mov eax, edx
jmp 0x40291e
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 0x40291e
cmp dword [esi + 0x14], edi
je 0x40291e
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 8]
push 0
pop edi
adc edi, dword [esi + 0xc]
cmp edx, edi
ja 0x40291e
jb 0x40291a
cmp eax, ecx
ja 0x40291e
mov eax, ecx
mov edx, edi
pop edi
pop esi
leave
ret

Function at 0x402a12
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 0x402a71
push 0x3f
push dword [esp + 0x10]
call fcn.0042cf5d
test eax, eax
pop ecx
pop ecx
je 0x402a71
push eax
add esi, 0x1486
push esi
call fcn.0042dc33
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x402bc9
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 0x402c9b
cmp dword [esi], 0x18
jne 0x402c9b
push dword [esi + 8]
lea ecx, [ebp + 8]
call fcn.00401af2
mov eax, dword [esi + 4]
cmp eax, ebx
mov ebx, dword [ebp + 8]
jne 0x402c09
push 0x10000000
push 0
push 0
push 1
jmp 0x402c7e
cmp eax, 1
je 0x402c74
cmp dword [ebx - 8], 0
je 0x402c74
push dword [esi + 0x10]
lea ecx, [edi + 0x20]
call fcn.00401bc2
push dword [esi + 0x14]
lea ecx, [edi + 0x24]
call fcn.00401bc2
push dword [esi + 0xc]
mov eax, dword [0x453170]
push ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push str.httphttp:___s:_d
push eax
call fcn.00401d30
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 [0x453174]
je 0x402c89
call fcn.004013ad
jmp 0x402c89
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 [0x453174]
je 0x402cae
call fcn.004013ad
jmp 0x402cae
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 0x402cb8
xor eax, eax
jmp 0x402cce
push 0x4030e1
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 0x403071
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 0x4030d3
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 0x4030d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4030d3
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 0x4030d3
cmp dword [esi + 0x44], eax
jne 0x4030d7
xor eax, eax
jmp 0x4030dd
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], eax
leave
ret 8

Function at 0x405192
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 0x4051af
push dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.00401e51
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 0x4051d2
xor al, al
jmp 0x405224
push 0x2000
lea ecx, [ebp - 0x14]
call fcn.004046da
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], 0x4474e0
call fcn.0042d321
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405d06
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 0x405e27
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 0x405e26
cmp eax, 1
jne 0x405df7
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 0x405df7
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 0x405d91
call dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x405d97
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, edi
jle 0x405dbd
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp ebx, edi
lea eax, [esp + 0x1c]
push eax
je 0x405db7
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x405dbd
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405deb
call ebp
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x40]
jae 0x405deb
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 0x405d71
jmp 0x405df3
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x14]
call ebp
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x40]
jb 0x405e0b
mov dword [esp + 0x10], 1
cmp dword [esp + 0x10], edi
je 0x405d39
mov eax, dword [esi]
cmp eax, edi
je 0x405e26
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 0x40823d
Capabilities:
Delete file

Disassembly:
mov eax, 0x43d9eb
call fcn.0042e3c4
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 0x408261
fadd qword [0x44a408]
fmul qword [0x44a468]
call fcn.0042e878
mov ecx, dword [esi + 0xe4]
xor edx, edx
cmp ecx, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xe0]
ja 0x4082a5
jb 0x408288
cmp eax, dword [ebp - 0x1c]
jae 0x4082a5
mov edi, eax
mov eax, dword [ebp - 0x1c]
sub eax, edi
sbb edx, ecx
mov dword [ebp - 0x14], edx
jne 0x408356
cmp eax, 0x500000
ja 0x408356
mov eax, dword [esi + 0xd4]
dec eax
push ebx
mov dword [ebp - 0x10], eax
lea ebx, [esi + 0xd0]
mov eax, ebx
call fcn.00406435
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 0x408355
ja 0x4082e0
cmp eax, dword [ebp - 0x1c]
jbe 0x408355
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x408355
mov ecx, ebx
call fcn.00408d99
push eax
lea ecx, [ebp - 0x14]
call fcn.00401abf
and dword [ebp - 4], 0
push dword [ebp - 0x14]
call fcn.004015c6
test eax, eax
pop ecx
je 0x408315
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40831d
push dword [ebp - 0x10]
call fcn.004063d5
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff4
dec dword [ebp - 0x10]
cmp ecx, dword [0x453174]
je 0x408337
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 0x4082e0
jb 0x408355
cmp ecx, dword [ebp - 0x1c]
ja 0x4082e0
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x40a9f8
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x44ecf8]
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 0x40aa37
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 0x40aa51
push 0x64
pop eax
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
push 0xea60
push eax
lea ecx, [ebp - 0x6c]
call fcn.00403071
mov esi, eax
test esi, esi
jbe 0x40aa85
mov edi, dword [ebp + 0x10]
cmp dword [edi], 0
jne 0x40aa7a
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 0x40aa46
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 0x40aaa3
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x70]
jae 0x40aaa3
or eax, 0xffffffff
jmp 0x40aaa6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.0042dc80
leave
ret 0x14

Function at 0x40aab2
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0042de00
mov eax, dword [0x44ecf8]
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 0x40ab0d
mov dword [ebp - 0x100c], esi
mov eax, dword [0x453170]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x100c]
cmp eax, esi
je 0x40ab22
inc eax
jmp 0x40ab27
mov eax, 0x2000
push eax
lea ecx, [ebp + 0x10]
call fcn.00401e78
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.00401ead
mov ebx, dword [ebp + 0x10]
push edi
mov eax, 0x1000
cmp dword [ebp - 0x1010], eax
jae 0x40ab51
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.00403071
test eax, eax
jbe 0x40ab91
mov byte [ebp + eax - 0x1008], 0
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp + 0x10]
call fcn.00404604
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx - 8]
cmp eax, dword [ebp - 0x100c]
jl 0x40ab3e
mov eax, dword [ebp - 0x100c]
cmp dword [ebx - 8], eax
pop edi
jl 0x40aba2
lea eax, [ebp + 0x10]
jmp 0x40abb9
push 0x447445
lea ecx, [ebp + 0x14]
call fcn.0040454b
mov dword [ebp - 0x1014], 1
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00401e1e
test byte [ebp - 0x1014], 1
je 0x40abde
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x40abde
call fcn.004013ad
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x453174]
pop esi
pop ebx
je 0x40abf0
call fcn.004013ad
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
call fcn.0042dc80
leave
ret 0x10
Function at 0x40abff
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2490
call fcn.0042de00
mov eax, dword [0x44ecf8]
push ebx
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [ebp - 4], eax
je 0x40ac26
mov eax, 0x80004005
jmp 0x40ad47
push edi
mov edi, 0x10000000
push edi
push ebx
lea ecx, [ebp - 0x248c]
call fcn.004029ad
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x248c]
call fcn.00402a12
test eax, eax
jne 0x40ac56
mov eax, 0x80004005
jmp 0x40ad46
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 0x40ac4c
lea eax, [ebp - 0x2490]
push eax
lea ecx, [ebp - 0x248c]
call fcn.00402a78
mov edi, eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x248c]
call fcn.00402adb
mov edi, dword [edi]
mov eax, dword [eax]
push esi
push 0x84400200
push ebx
push edi
push ebx
push eax
push 0x446e7c
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 [0x453174]
je 0x40acd6
call fcn.004013ad
mov ecx, dword [ebp - 0x2490]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x40acec
call fcn.004013ad
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40ad38
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40ad3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x40ad38
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 0x40ad3d
mov ebx, 0x80004005
mov ecx, esi
call fcn.0040302b
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0042dc80
leave
ret 4
Function at 0x40ad54
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 0x40ada2
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x40ad72
call fcn.004013ad
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x40ad85
call fcn.004013ad
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x40ad98
call fcn.004013ad
mov eax, 0x80004005
jmp 0x40aeda
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 0x40adfe
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x40add1
call fcn.004013ad
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x40ade4
call fcn.004013ad
lea ecx, [edi - 0xc]
cmp ecx, dword [0x453174]
je 0x40adf4
call fcn.004013ad
mov eax, 0x80004005
jmp 0x40aed9
mov edi, dword [ebp + 8]
push esi
push 0x84400200
push ebx
push edi
push ebx
push dword [ebp + 0xc]
push 0x448c38
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x40ae65
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40ae9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x40ae65
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 0x40ae9a
mov ecx, esi
call fcn.0040302b
lea ecx, [edi - 0xc]
cmp ecx, dword [0x453174]
je 0x40ae7c
call fcn.004013ad
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x40ae8f
call fcn.004013ad
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff4
jmp 0x40ade7
mov ecx, esi
call fcn.0040302b
lea ecx, [edi - 0xc]
cmp ecx, dword [0x453174]
je 0x40aeb1
call fcn.004013ad
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x40aec4
call fcn.004013ad
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x40aed7
call fcn.004013ad
xor eax, eax
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x40e149
Capabilities:
Encode data using xor

Disassembly:
xlatb
ror byte [esi - 0x73], 0x52
sar esp, 0x62
fdiv dword [edi - 0x5d]
cmp byte [edx + 0x61], bl
cmp esp, dword [ecx]
lds esi, [esi]
cmp eax, 0x757c9e32
mov esp, 0x6b1bd3c0
sahf
fcmovnu st(0), st(2)
and ah, byte [eax]
xlatb
cmp eax, 0x7135bb9a
xor cl, bl
cmp bh, byte [esi]
jecxz 0x40e154
xchg ebp, eax
xlatb
push ebx
cdq
sbb al, 0x5e
dec esi
xor cl, byte [ebx - 0x31]
mov es, word [eax - 0x43]
jl 0x40e0f1
iretd
invalid