joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4101df
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2498
call fcn.0042de00
mov eax, dword [0x44ecf8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [ebp - 4], eax
je 0x410209
mov eax, 0x80004005
jmp 0x4103b2
cmp dword [ebp + 0xc], ebx
jne 0x410218
mov eax, 0x80004003
jmp 0x4103b2
push edi
mov edi, 0x10000000
push edi
push ebx
lea ecx, [ebp - 0x248c]
mov dword [esi + 0x1c], ebx
call fcn.004029ad
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x248c]
call fcn.00402a12
test eax, eax
jne 0x41024b
mov eax, 0x80004005
jmp 0x4103b1
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 0x410241
lea eax, [ebp - 0x2490]
push eax
lea ecx, [ebp - 0x248c]
call fcn.00402a78
mov edi, dword [eax]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x248c]
call fcn.00402adb
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 [0x453174]
je 0x4102ce
call fcn.004013ad
mov ecx, dword [ebp - 0x2490]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x4102e4
call fcn.004013ad
cmp dword [esi + 8], ebx
jne 0x4102f0
mov ebx, 0x80004005
jmp 0x410365
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
jne 0x410301
push dword [ebp + 0xc]
call fcn.0042d450
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 0x410370
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x410365
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 0x410370
mov ecx, esi
call fcn.0040302b
mov eax, ebx
jmp 0x4103b1
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 0x41039a
mov dword [edi], ebx
mov ecx, esi
call fcn.0040302b
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.0042dc80
leave
ret 0x1c
Function at 0x4105c5
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 [0x44ecf8]
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 0x41075f
mov eax, dword [0x453170]
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 0x410662
push str.BaiduTTPlayer_
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401af2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401dc3
push eax
lea ecx, [ebp - 0x20]
call fcn.00401b73
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x41064d
call fcn.004013ad
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x41066e
call fcn.004013ad
jmp 0x41066e
add edi, 0x50
push edi
lea ecx, [ebp - 0x20]
call fcn.00401b73
push 0x43f5cc
lea ecx, [ebp - 0x20]
call fcn.00401be9
mov edi, dword [ebp - 0x20]
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4106b4
lea ecx, [edi - 0xc]
cmp ecx, dword [0x453174]
je 0x410785
call fcn.004013ad
jmp 0x410785
mov eax, dword [0x453170]
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.00401e78
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xea60
lea ecx, [ebp - 0x80]
call fcn.00402b23
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
lea ecx, [ebp - 0x80]
call fcn.00410108
test eax, eax
je 0x41071e
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.004101df
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401ead
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x80]
call fcn.00402b8c
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x410749
call fcn.004013ad
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x41075c
call fcn.004013ad
mov edi, dword [ebp - 0x24]
cmp dword [edi + 0x48], esi
je 0x410777
push 1
push esi
push esi
push dword [edi + 0x54]
push 0x43f59c
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.0042dc80
add ebp, 0x1f4
leave
ret 0x10
Function at 0x4108a7
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x44ecf8]
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.0042d6de
cmp eax, ebx
pop ecx
pop ecx
je 0x410914
mov word [eax + 2], bx
lea eax, [ebp + 0x190]
lea ebx, [esi + 0x50]
push eax
mov ecx, ebx
call fcn.00401bc2
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 0x410988
push str.BaiduTTPlayer_
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00401af2
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00401dc3
push eax
mov ecx, edi
call fcn.00401b73
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x410973
call fcn.004013ad
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x410990
call fcn.004013ad
jmp 0x410990
push ebx
mov ecx, edi
call fcn.00401b73
push 0x43f5cc
mov ecx, edi
call fcn.00401be9
push str.TTPlayer.exe
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.00401dc3
push eax
lea ecx, [esi + 0x54]
call fcn.00401b73
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x4109c7
call fcn.004013ad
push 0
lea ecx, [esi + 4]
call fcn.0040ff9b
mov ecx, esi
call fcn.00410806
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0042dc80
add ebp, 0x39c
leave
ret 0x10
Function at 0x41251a
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 0x4128d0
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.0042de00
mov eax, dword [0x44ecf8]
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 0x4129b8
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 0x4129ce
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 0x412a56
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call fcn.004128d0
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 0x412a62
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 0x41291e
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 0x412a3b
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 0x412a51
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 0x4129f5
xor eax, eax
inc eax
jmp 0x412a64
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.0042dc80
add ebp, 0xffa4
leave
ret
Function at 0x412bd0
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 SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x18], esi
jne 0x412c04
xor eax, eax
jmp 0x412c89
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 0x412c7f
cmp eax, 0x40
jbe 0x412c7f
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 0x412c7f
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x412c7a
cmp word [esi], 0x5a4d
mov ebx, esi
jne 0x412c73
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.0042cc20
add esp, 0xc
cmp dword [ebp - 8], 0x4550
je 0x412c8d
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.00412b94
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 0x412c81

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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44ecf8]
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 0x412f76
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x412f3f
lea eax, [ebp - 0x70]
push eax
call fcn.00412eee
cmp eax, esi
jne 0x412f75
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 0x412f32
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.0042dc80
add ebp, 0x194
leave
ret 4
Function at 0x413fcb
Capabilities:
Create process on windows

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

Function at 0x414176
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x44ecf8]
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.0041427b
mov ecx, dword [ebp + 0x7a0]
pop edi
pop esi
pop ebx
call fcn.0042dc80
add ebp, 0x7a4
leave
ret
Function at 0x4148b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x814]
sub esp, 0x894
mov eax, dword [0x44ecf8]
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 0x414901
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx + 4]
jne 0x414901
mov dword [ebp - 0x58], 1
jmp 0x414905
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 0x414936
cmp eax, 2
je 0x414936
test eax, eax
jne 0x41495d
cmp dword [ebx + 0x28], eax
jne 0x41495d
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 0x414991
jbe 0x4149a2
cmp eax, 2
jbe 0x41498c
cmp eax, 3
jne 0x4149a2
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x41499f
mov eax, dword [ebx + 0x30]
jmp 0x41499f
cmp dword [ebx + 0x38], 0
je 0x41499c
mov eax, dword [ebx + 0x34]
jmp 0x41499f
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 0x414a3b
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 0x414a57
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0x810]
call fcn.0042dc80
add ebp, 0x814
leave
ret 4
Function at 0x4183a8
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov eax, 0x1018
lea ebp, [esp - 0xf98]
call fcn.0042de00
mov eax, dword [0x44ecf8]
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 0x4183f7
mov dword [ebp - 0x78], esi
mov eax, dword [0x453170]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
cmp eax, esi
je 0x418409
inc eax
jmp 0x41840e
mov eax, 0x2000
push eax
lea ecx, [ebp - 0x74]
call fcn.00401e78
push 0xffffffffffffffff
lea ecx, [ebp - 0x74]
call fcn.00401ead
and dword [ebp - 0x80], 0
mov esi, 0x1000
mov eax, dword [ebp - 0x7c]
cmp eax, esi
jb 0x418433
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 0x41846f
mov eax, dword [ebp - 0x80]
test eax, eax
jbe 0x41846f
mov byte [ebp + eax - 0x70], 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x74]
call fcn.00404604
mov eax, dword [ebp - 0x74]
mov eax, dword [eax - 8]
cmp eax, dword [ebp - 0x78]
jl 0x41842a
mov ecx, dword [ebp + 0xfa0]
lea eax, [ebp - 0x74]
push eax
call fcn.00401e1e
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
pop esi
je 0x418492
call fcn.004013ad
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp + 0xfa0]
call fcn.0042dc80
add ebp, 0xf98
leave
ret
Function at 0x41a051
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 0xc], 0
mov eax, dword [0x44ecf8]
push ebx
mov ebx, dword [0x453838]
push esi
mov dword [ebp - 4], eax
push edi
mov esi, ecx
jne 0x41a092
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
lea eax, [ebp - 0x20c]
push eax
jmp 0x41a0a2
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.0041a129
mov ecx, esi
call fcn.0041a0cc
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [edi], eax
pop edi
pop esi
setne al
pop ebx
call fcn.0042dc80
leave
ret 0xc

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

Disassembly:
push ecx
push ebx
push ebp
push esi
xor esi, esi
mov ebp, ecx
cmp dword [ebp], esi
mov dword [esp + 0xc], esi
je 0x41a360
call fcn.00412ab9
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41a385
xor eax, eax
jmp 0x41a3e7
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 2
push esi
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call ebx
cmp edi, esi
jne 0x41a3b2
xor eax, eax
jmp 0x41a3e6
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call ebx
push dword [esp + 0x18]
mov ecx, ebp
push esi
call fcn.0041a19c
test eax, eax
je 0x41a3db
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x41a975
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44ecf8]
push ebx
push esi
push edi
mov dword [ebp + 0x394], eax
mov esi, ecx
call dword [0x4531c8]
xor ebx, ebx
push 2
push ebx
push dword [ebp + 0x3a0]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x74], edi
jne 0x41a9c8
call fcn.00415e2d
mov esi, eax
jmp 0x41aa68
push dword [ebp + 0x3a8]
push dword [ebp + 0x3a4]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x41aa3e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x41aa3e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + edi]
lea eax, [esi + 2]
cmp eax, 0x400
jbe 0x41aa12
push eax
lea ecx, [ebp - 0x70]
call fcn.0041aa92
jmp 0x41aa18
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], ebx
jne 0x41aa24
mov esi, 0x8007000e
jmp 0x41aa5f
call dword [0x4531c8]
push edi
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x78]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41aa45
call fcn.00415e2d
jmp 0x41aa5d
mov eax, dword [ebp - 0x70]
push dword [ebp + 0x3ac]
mov word [esi + eax], bx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
call fcn.0041aab7
mov esi, eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x41aa78
lea ecx, [ebp - 0x70]
call fcn.0041b9b7
mov ecx, dword [ebp + 0x394]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0042dc80
add ebp, 0x398
leave
ret 0x10