joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e933
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
mov esi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004016b9
test eax, eax
je 0x40e9ad
test byte [ebp + 0xf], 0x40
push ebx
jne 0x40e9a9
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 0x40e99b
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 0x40e9b2
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], ebx
xor eax, eax
inc eax
pop ebx
pop esi
pop ebp
ret 0x14
mov ecx, esi
call fcn.0040e9bd
xor eax, eax
jmp 0x40e9ac

Function at 0x40f2e8
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x7a0]
sub esp, 0x820
mov eax, dword [0x44dcf8]
push ebx
xor ebx, ebx
mov dword [ebp + 0x79c], eax
cmp byte [edi + 4], bl
je 0x40f3e9
mov eax, dword [edi + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x6c], eax
mov byte [edi + 4], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [edi + 8]
je 0x40f3e6
push esi
push dword [ebp + 0x7a8]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [0x45734c]
jne 0x40f387
test byte [eax + 4], 0x10
je 0x40f3e5
push ebx
push 0x800
lea eax, [ebp - 0x64]
lea esi, [ebp - 0x80]
call fcn.0040f027
push str.CThreadInfo::Destroy_shutdown_normally___thread_id_is
call fcn.0040f182
push dword [ebp - 0x68]
mov ecx, esi
call fcn.0040f0d9
mov ecx, dword [0x45734c]
push ebx
push dword [eax + 4]
push 0x10
pop eax
call fcn.0040fc0d
jmp 0x40f3e5
test byte [eax + 4], 0x10
je 0x40f3db
push ebx
push 0x800
lea eax, [ebp - 0x64]
lea esi, [ebp - 0x80]
call fcn.0040f027
push 0x447c70
call fcn.0040f182
push dword [ebp - 0x68]
mov ecx, esi
push str._thread_id_is:
push dword [ebp + 0x7a8]
call fcn.0040f087
call fcn.0040f13d
mov ecx, eax
call fcn.0040f0d9
mov ecx, dword [0x45734c]
push ebx
push dword [eax + 4]
push 0x10
pop eax
call fcn.0040fc0d
push ebx
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov dword [edi + 0x10], ebx
mov ecx, dword [ebp + 0x79c]
pop ebx
call fcn.0042da10
add ebp, 0x7a0
leave
ret

Function at 0x40ff46
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push dword [ecx + 0x4c]
push 0x43e59c
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret 0x10
Function at 0x40ffe5
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2498
call fcn.0042db90
mov eax, dword [0x44dcf8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [ebp - 4], eax
je 0x41000f
mov eax, 0x80004005
jmp 0x4101b8
cmp dword [ebp + 0xc], ebx
jne 0x41001e
mov eax, 0x80004003
jmp 0x4101b8
push edi
mov edi, 0x10000000
push edi
push ebx
lea ecx, [ebp - 0x248c]
mov dword [esi + 0x1c], ebx
call fcn.00402a5e
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x248c]
call fcn.00402ac3
test eax, eax
jne 0x410051
mov eax, 0x80004005
jmp 0x4101b7
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 0x410047
lea eax, [ebp - 0x2490]
push eax
lea ecx, [ebp - 0x248c]
call fcn.00402b29
mov edi, dword [eax]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x248c]
call fcn.00402b8c
mov ecx, dword [ebp + 0x1c]
mov eax, dword [eax]
push esi
or ecx, 0x400000
push ecx
push ebx
push edi
push ebx
push eax
push str.POST
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 0x4100d4
call fcn.004013ad
mov ecx, dword [ebp - 0x2490]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x4100ea
call fcn.004013ad
cmp dword [esi + 8], ebx
jne 0x4100f6
mov ebx, 0x80004005
jmp 0x41016b
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
jne 0x410107
push dword [ebp + 0xc]
call fcn.0042d1e0
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x410176
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x41016b
push dword [esi + 0x18]
mov eax, dword [esi + 0xc]
push ebx
lea ecx, [ebp - 0x2494]
push ecx
mov dword [ebp - 0x2494], eax
mov eax, dword [ebp + 0x20]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x2490], eax
inc ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
neg eax
sbb eax, eax
neg eax
mov dword [ebp + 0xc], eax
je 0x410176
mov ecx, esi
call fcn.004030dc
mov eax, ebx
jmp 0x4101b7
push ebx
lea eax, [ebp - 0x2498]
push eax
lea edi, [esi + 0x1c]
push edi
push 0x20000013
push dword [esi + 8]
mov dword [ebp - 0x2498], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4101a0
mov dword [edi], ebx
mov ecx, esi
call fcn.004030dc
mov eax, dword [edi]
sub eax, 0xc8
neg eax
sbb eax, eax
and eax, 0x80004005
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042da10
leave
ret 0x1c
Function at 0x4103cb
Capabilities:
Create process on windows
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x44dcf8]
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push esi
push dword [edi + 4]
mov dword [ebp + 0x1f0], eax
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x44], esi
je 0x410565
mov eax, dword [0x452170]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x410468
push str.BaiduTTPlayer_
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401b2d
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401deb
push eax
lea ecx, [ebp - 0x20]
call fcn.00401b9b
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x410453
call fcn.004013ad
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x410474
call fcn.004013ad
jmp 0x410474
add edi, 0x50
push edi
lea ecx, [ebp - 0x20]
call fcn.00401b9b
push 0x43e5cc
lea ecx, [ebp - 0x20]
call fcn.00401c11
mov edi, dword [ebp - 0x20]
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4104ba
lea ecx, [edi - 0xc]
cmp ecx, dword [0x452174]
je 0x41058b
call fcn.004013ad
jmp 0x41058b
mov eax, dword [0x452170]
push esi
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push esi
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], esi
call fcn.00401eb3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xea60
lea ecx, [ebp - 0x80]
call fcn.00402bd4
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
lea ecx, [ebp - 0x80]
call fcn.0040ff0e
test eax, eax
je 0x410524
mov eax, dword [ebp - 0x1c]
push esi
push 0x84000200
push 0xffffffffffffffff
push esi
push dword [eax - 8]
lea ecx, [ebp - 0x80]
push eax
push str.http:__Mnetud.baidu.com_qqdump.fcgi
call fcn.0040ffe5
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401ee8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x80]
call fcn.00402c3d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x41054f
call fcn.004013ad
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x410562
call fcn.004013ad
mov edi, dword [ebp - 0x24]
cmp dword [edi + 0x48], esi
je 0x41057d
push 1
push esi
push esi
push dword [edi + 0x54]
push 0x43e59c
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
movzx eax, word [ebp + 0x200]
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp + 0x1f0]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0042da10
add ebp, 0x1f4
leave
ret 0x10
Function at 0x4106ad
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x44dcf8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp + 0x398], eax
xor ebx, ebx
xor eax, eax
mov word [ebp + 0x190], bx
mov ecx, 0x81
lea edi, [ebp + 0x192]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp + 0x190]
push eax
push ebx
mov dword [esi + 0x44], 1
mov dword [esi + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x190]
push 0x5c
push eax
call fcn.0042d46e
cmp eax, ebx
pop ecx
pop ecx
je 0x41071a
mov word [eax + 2], bx
lea eax, [ebp + 0x190]
lea ebx, [esi + 0x50]
push eax
mov ecx, ebx
call fcn.00401bea
lea eax, [ebp - 0x78]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea edi, [esi + 0x4c]
jl 0x41078e
push str.BaiduTTPlayer_
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00401b2d
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00401deb
push eax
mov ecx, edi
call fcn.00401b9b
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x410779
call fcn.004013ad
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x410796
call fcn.004013ad
jmp 0x410796
push ebx
mov ecx, edi
call fcn.00401b9b
push 0x43e5cc
mov ecx, edi
call fcn.00401c11
push str.TTPlayer.exe
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.00401deb
push eax
lea ecx, [esi + 0x54]
call fcn.00401b9b
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x4107cd
call fcn.004013ad
push 0
lea ecx, [esi + 4]
call fcn.0040fda1
mov ecx, esi
call fcn.0041060c
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0042da10
add ebp, 0x39c
leave
ret 0x10
Function at 0x4122fe
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x4126b4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov eax, 0x10024
lea ebp, [esp - 0xffa4]
call fcn.0042db90
mov eax, dword [0x44dcf8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push edi
mov dword [ebp + 0xffa0], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x7fa0]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x6c], edi
mov esi, 0x8000
push edi
jmp 0x41279c
lea eax, [ebp - 0x74]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xffac]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4127b2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push 0x20006
push edi
lea eax, [ebp + 0x7fa0]
push eax
push edi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xffb0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41283a
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call fcn.004126b4
pop ecx
pop ecx
push dword [ebp - 0x74]
mov dword [ebp - 0x64], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x64], edi
je 0x412846
inc dword [ebp - 0x6c]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x7fa0]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x6c]
push dword [ebp + 0xffac]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call ebx
test eax, eax
je 0x412702
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x3fa0]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x7fa0]
push eax
mov dword [ebp - 0x64], edi
push edi
jmp 0x41281f
push dword [ebp - 0x68]
lea eax, [ebp + 0x3fa0]
push eax
push dword [ebp - 0x70]
lea eax, [ebp + 0x7fa0]
push edi
push eax
push dword [ebp + 0xffb0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x412835
inc dword [ebp - 0x64]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x3fa0]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x7fa0]
push eax
push dword [ebp - 0x64]
push dword [ebp + 0xffac]
mov dword [ebp - 0x68], 0x4000
mov dword [ebp - 0x6c], esi
call ebx
test eax, eax
je 0x4127d9
xor eax, eax
inc eax
jmp 0x412848
push dword [ebp + 0xffac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp + 0xffa0]
pop edi
pop esi
pop ebx
call fcn.0042da10
add ebp, 0xffa4
leave
ret
Function at 0x4129b4
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x18], esi
jne 0x4129e8
xor eax, eax
jmp 0x412a6d
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], eax
je 0x412a63
cmp eax, 0x40
jbe 0x412a63
push ebx
push eax
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412a63
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x412a5e
cmp word [esi], 0x5a4d
mov ebx, esi
jne 0x412a57
and dword [ebp - 8], 0
lea eax, [esi + 0x3c]
add esi, dword [eax]
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push esi
push eax
call fcn.0042c9b0
add esp, 0xc
cmp dword [ebp - 8], 0x4550
je 0x412a71
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call edi
xor esi, esi
push dword [ebp - 0x18]
call edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
movzx eax, word [esi + 6]
add esi, 4
mov edx, dword [esi + 0x98]
lea ecx, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
add esi, 0x14
lea ecx, [esi + ecx*8 + 0xe0]
mov esi, eax
mov eax, dword [ebp - 0xc]
sub eax, esi
sub eax, edx
mov edx, dword [ebp - 0x10]
sub eax, dword [edx]
mov dword [ebp - 0x14], ecx
sub eax, 0xf8
call fcn.00412978
movzx ecx, word [ebx + 0x20]
push dword [ebp - 0x14]
mov esi, eax
movzx eax, word [ebx + 0x22]
shl eax, 0x10
or eax, ecx
sub esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call edi
jmp 0x412a65

Function at 0x412cd2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44dcf8]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x19c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x74], esi
call fcn.0040123d
cmp eax, esi
jne 0x412d5a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x412d23
lea eax, [ebp - 0x70]
push eax
call fcn.00412cd2
cmp eax, esi
jne 0x412d59
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x412d16
call fcn.00401226
push dword [ebp + 0x19c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401226
mov ecx, dword [ebp + 0x190]
mov eax, esi
pop esi
pop ebx
call fcn.0042da10
add ebp, 0x194
leave
ret 4
Function at 0x413dc9
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, ecx
jne 0x413ddb
mov eax, dword [esi + 0x44]
test eax, eax
je 0x413e01
push 1
push 0
push 0
push eax
push 0x43e59c
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x413e01
xor eax, eax
mov dword [esi + 0x38], 1
inc eax
jmp 0x413e03
xor eax, eax
pop esi
ret 4

Function at 0x413f74
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x44dcf8]
push ebx
push esi
push edi
mov dword [ebp + 0x7a0], eax
push 0x400
lea eax, [ebp - 0x60]
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 4]
xor ebx, ebx
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [esi + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 0x7c], eax
call edi
push 0x420
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x64]
add dword [ebp - 0x68], 2
push dword [ebp - 0x7c]
call edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push 2
lea ecx, [ebp - 0x74]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [esi + 4]
call edi
push 0xffffffffffffffec
push dword [esi + 4]
mov dword [ebp - 0x64], eax
call edi
push eax
push ebx
push dword [ebp - 0x64]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x70]
push 0x16
push eax
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x74]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [ebp - 0x7c]
call fcn.00414079
mov ecx, dword [ebp + 0x7a0]
pop edi
pop esi
pop ebx
call fcn.0042da10
add ebp, 0x7a4
leave
ret
Function at 0x4146ae
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x814]
sub esp, 0x894
mov eax, dword [0x44dcf8]
push ebx
push esi
mov dword [ebp + 0x810], eax
push edi
lea eax, [ebp - 0x80]
mov ebx, ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000
je 0x4146ff
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx + 4]
jne 0x4146ff
mov dword [ebp - 0x58], 1
jmp 0x414703
and dword [ebp - 0x58], 0
push 0x400
lea eax, [ebp - 0x4c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x3c]
cmp eax, 1
mov dword [ebp - 0x54], ecx
je 0x414734
cmp eax, 2
je 0x414734
test eax, eax
jne 0x41475b
cmp dword [ebx + 0x28], eax
jne 0x41475b
lea eax, [ebp + 0x7b4]
push eax
push 0x5c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp + 0x7b4]
push eax
mov byte [ebp + 0x7c9], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
push dword [ebp + 0x81c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x41478f
jbe 0x4147a0
cmp eax, 2
jbe 0x41478a
cmp eax, 3
jne 0x4147a0
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x41479d
mov eax, dword [ebx + 0x30]
jmp 0x41479d
cmp dword [ebx + 0x38], 0
je 0x41479a
mov eax, dword [ebx + 0x34]
jmp 0x41479d
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x50], eax
lea esi, [ebp - 0x80]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
push 0x420
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp + 0x81c]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_DrawTextW]
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
sub esi, dword [ebp - 0x70]
sub edi, dword [ebp - 0x6c]
push 1
push dword [ebp + 0x81c]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0x50]
push dword [ebp + 0x81c]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
neg eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
or eax, 2
push eax
push edi
mov edi, dword [ebp + 0x81c]
push esi
xor esi, esi
push esi
push esi
push dword [ebp - 0x60]
lea eax, [ebp - 0x4c]
push eax
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_DrawStateW]
cmp dword [ebp - 0x58], esi
je 0x414839
push esi
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebx + 0x24]
pop edi
pop esi
pop ebx
je 0x414855
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0x810]
call fcn.0042da10
add ebp, 0x814
leave
ret 4
Function at 0x418197
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov eax, 0x1018
lea ebp, [esp - 0xf98]
call fcn.0042db90
mov eax, dword [0x44dcf8]
push esi
push 0
mov dword [ebp + 0xf94], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x20000005
push dword [ebp + 0xfa4]
mov esi, SysReAllocString
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4181e6
mov dword [ebp - 0x78], esi
mov eax, dword [0x452170]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
cmp eax, esi
je 0x4181f8
inc eax
jmp 0x4181fd
mov eax, 0x2000
push eax
lea ecx, [ebp - 0x74]
call fcn.00401eb3
push 0xffffffffffffffff
lea ecx, [ebp - 0x74]
call fcn.00401ee8
and dword [ebp - 0x80], 0
mov esi, 0x1000
mov eax, dword [ebp - 0x7c]
cmp eax, esi
jb 0x418222
mov eax, esi
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xfa4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41825e
mov eax, dword [ebp - 0x80]
test eax, eax
jbe 0x41825e
mov byte [ebp + eax - 0x70], 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x74]
call fcn.004046b5
mov eax, dword [ebp - 0x74]
mov eax, dword [eax - 8]
cmp eax, dword [ebp - 0x78]
jl 0x418219
mov ecx, dword [ebp + 0xfa0]
lea eax, [ebp - 0x74]
push eax
call fcn.00401e46
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
pop esi
je 0x418281
call fcn.004013ad
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp + 0xfa0]
call fcn.0042da10
add ebp, 0xf98
leave
ret