joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41799b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x413]
push 0
push eax
mov byte [ebp - 0x414], 0
call fcn.0040c090
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404902
sub ecx, edx
sar ecx, 1
push ecx
push esi
push 0x400
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00409695
add esp, 0x14
cmp byte [ebp - 0x414], 0
mov byte [ebp - 0x43c], 0
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x4a4], 0x67452301
mov dword [ebp - 0x4a0], 0xefcdab89
mov dword [ebp - 0x49c], 0x98badcfe
mov dword [ebp - 0x498], 0x10325476
mov dword [ebp - 0x4a8], 0xf
mov dword [ebp - 0x4ac], 0
mov byte [ebp - 0x4bc], 0
jne 0x404999
xor ecx, ecx
jmp 0x4049ab
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4049a2
sub ecx, edx
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00401730
cmp dword [ebp - 0x4a8], 0x10
push dword [ebp - 0x4ac]
lea eax, [ebp - 0x4bc]
cmovae eax, dword [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00403dd0
cmp dword [ebp - 0x4a8], 0x10
jb 0x4049fb
push dword [ebp - 0x4bc]
call fcn.00408a8d
add esp, 4
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00404870
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x404a1e
mov edx, dword [edx]
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], 0
mov byte [ebp - 0x430], 0
cmp byte [edx], 0
jne 0x404a42
xor ecx, ecx
jmp 0x404a50
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a47
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x430]
call fcn.00401730
cmp dword [ebp - 0x4a8], 0x10
jb 0x404a74
push dword [ebp - 0x4bc]
call fcn.00408a8d
add esp, 4
mov edx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
cmp edx, 0x10
cmovae ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a90
sub ecx, edi
push ecx
cmp edx, 0x10
lea eax, [ebp - 0x430]
cmovae eax, esi
push eax
push 0x400
lea eax, [ebp - 0x418]
push 0x424b58
push eax
call fcn.004098ee
add esp, 0x14
cmp dword [ebp - 0x41c], 0x10
jb 0x404ad7
push dword [ebp - 0x430]
call fcn.00408a8d
add esp, 4
mov eax, 0x424b58
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004082c3
mov esp, ebp
pop ebp
ret 4
Function at 0x4060c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4223fc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00401c40
mov edx, eax
cmp word [edx], 0
jne 0x4060eb
xor ecx, ecx
jmp 0x4060ff
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4060f0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x423654
call fcn.00403420
cmp dword [ebp + 0xc], 0
jne 0x406121
mov ecx, esi
call fcn.00406010
test ax, ax
je 0x4061f3
push 0
push esi
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0xcf0000
push 0
push 0x41f560
push 0x200
mov dword [0x425358], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x4061f3
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
movq qword [esp + 0x14], xmm0
movq qword [esp + 0x1c], xmm0
movq qword [esp + 0x24], xmm0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x4061a3
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x4061db
lea eax, [esp + 0x10]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4061a3
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004082c3
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004082c3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4077b0
Capabilities:
Connect to wmi namespace via wbemlocator
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
je 0x4077ce
push str.WMI_DeviceQuery_Init:faild
call edi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
je 0x4077f1
push str.WMI_DeviceQuery_Init:faild
call edi
push 0x425360
push 0x41e7a8
push 1
push 0
push 0x41e878
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [0x425360], 0
jne 0x407824
push str.WMI_DeviceQuery_Init:faild
call edi
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 4]
call fcn.00407190
mov edx, dword [eax]
test edx, edx
je 0x407837
mov edx, dword [edx]
jmp 0x407839
xor edx, edx
mov eax, dword [0x425360]
push esi
mov ecx, dword [eax]
push 0x42535c
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 4]
test esi, esi
je 0x4078a3
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4078a3
test esi, esi
je 0x4078a3
mov eax, dword [esi]
test eax, eax
je 0x407883
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40789a
push eax
call fcn.00408a5e
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.00408a8d
add esp, 4
mov eax, dword [0x42535c]
pop esi
test eax, eax
je 0x407813
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
je 0x4078d1
push str.WMI_DeviceQuery_Init:faild
call edi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41359e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040c33a
mov dword [ebp - 0x14], eax
cmp dword [0x424658], edi
jne 0x41368f
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41361c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41376f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41376f
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41376f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x424658], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42465c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x424660], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x424668], eax
test eax, eax
je 0x41368c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x424664], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4136b4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4136a7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4136c9
push 4
pop eax
jmp 0x413771
cmp dword [ebp - 0x14], edi
je 0x4136c9
push dword [0x424658]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4136ae
mov eax, dword [0x424664]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x413727
cmp dword [0x424668], esi
je 0x413727
push eax
call ebx
push dword [0x424668]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x413727
test eax, eax
je 0x413727
call ecx
test eax, eax
je 0x41371c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41371c
test byte [ebp - 8], 1
jne 0x413727
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x413757
mov eax, dword [0x42465c]
cmp eax, esi
je 0x413754
push eax
call ebx
test eax, eax
je 0x413754
call eax
mov edi, eax
test edi, edi
je 0x413754
mov eax, dword [0x424660]
cmp eax, esi
je 0x413754
push eax
call ebx
test eax, eax
je 0x413754
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x424658]
call ebx
test eax, eax
je 0x41376f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x413771
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082c3
leave
ret
Function at 0x401050
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x61c
mov eax, dword [0x41e5f4]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x62c]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, dword [esp + 0x634]
je 0x4011ab
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401097
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
jmp 0x4011ad
push 0x206
lea eax, [esp + 0x16]
push ebx
push eax
mov word [esp + 0x1c], bx
call fcn.0040ba20
add esp, 0xc
push 0x4183e4
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push 0x104
jne 0x4010f2
lea ecx, [esp + 0x424]
push ecx
push edi
call section..text
test eax, eax
je 0x4010fa
push esi
lea edx, [esp + 0x424]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x4010fa
push esi
lea ecx, [esp + 0x18]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp word [esp + edi*2 + 0x10], 0x5c
je 0x401122
push 0x4183e0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
add edi, 1
push 0x206
lea ecx, [esp + 0x21e]
push ebx
push ecx
mov word [esp + 0x224], bx
call fcn.0040ba20
add esp, 0xc
cmp edi, ebx
je 0x4011ab
xor esi, esi
cmp edi, ebx
jle 0x4011a4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp word [esp + esi*2 + 0x10], 0x5c
jne 0x40119d
lea edx, [esi + 2]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x220]
push ecx
call ebp
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40118d
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
jmp 0x401199
push 0
lea ecx, [esp + 0x21c]
push ecx
call ebx
test eax, eax
je 0x4011ab
add esi, 1
cmp esi, edi
jl 0x401150
mov eax, 1
jmp 0x4011ad
xor eax, eax
mov ecx, dword [esp + 0x628]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ba0c
add esp, 0x61c
ret 8
Function at 0x401270
Capabilities:
Parse url

Disassembly:
sub esp, 0x870
mov eax, dword [0x41e5f4]
xor eax, esp
mov dword [esp + 0x86c], eax
mov eax, dword [esp + 0x878]
mov ecx, dword [esp + 0x87c]
mov edx, dword [esp + 0x884]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
mov ebp, dword [esp + 0x888]
push esi
mov esi, dword [esp + 0x880]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x894]
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
call ebx
test eax, eax
jg 0x4012d5
xor eax, eax
jmp 0x401435
push edi
xor edi, edi
push 0x206
lea ecx, [esp + 0x472]
push edi
push ecx
mov word [esp + 0x478], di
call fcn.0040ba20
push 0x206
lea edx, [esp + 0x686]
push edi
push edx
mov word [esp + 0x68c], di
call fcn.0040ba20
push 0x206
lea eax, [esp + 0x282]
push edi
push eax
mov word [esp + 0x288], di
call fcn.0040ba20
push 0x206
lea ecx, [esp + 0x86]
push edi
push ecx
mov word [esp + 0x8c], di
call fcn.0040ba20
push 0x38
lea edx, [esp + 0x58]
push edi
push edx
mov dword [esp + 0x5c], edi
call fcn.0040ba20
lea edx, [esp + 0x98]
add esp, 0x3c
mov dword [esp + 0x54], edx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x678]
lea ecx, [esp + 0x268]
mov dword [esp + 0x34], eax
mov eax, 0x104
mov dword [esp + 0x50], ecx
push SysReAllocStringLen
lea ecx, [esp + 0x474]
push esi
mov word [esp + 0x44], 0x50
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
call ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov ebx, eax
cmp ebx, edi
pop edi
je 0x401433
mov ax, word [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov word [ecx], ax
mov eax, dword [esp + 0xc]
push 0x104
lea ecx, [esp + 0x46c]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
push ecx
push edx
call esi
mov ecx, dword [esp + 0x18]
push 0x104
lea eax, [esp + 0x674]
push eax
push ecx
call esi
push 0x104
lea edx, [esp + 0x264]
push edx
push ebp
call esi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x401433
lea edx, [esp + 0x58]
push edx
push ebp
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov eax, ebx
mov ecx, dword [esp + 0x878]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ba0c
add esp, 0x870
ret 0x18

Function at 0x401680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401699
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4016d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4016d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4016c0
cmp esi, eax
jb 0x4016da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4017f0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401866
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x401835
cmp eax, 2
jne 0x401851
test esi, esi
mov eax, dword [esp + 0x14]
je 0x401860
test eax, eax
je 0x40185b
test al, 1
jne 0x401851
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x401860
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x403c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416956
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e5f4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov dword [esi + 4], eax
mov dword [esi], vtable.CInternetException.0
mov edx, dword [0x4206c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4206c4
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov edx, dword [0x4206c4]
mov eax, dword [edx + 0xc]
xor ebp, ebp
mov ecx, 0x4206c4
mov dword [esp + 0x1c], ebp
lea edi, [esi + 0x14]
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x28]
push ecx
push ebp
mov dword [esp + 0x30], ebp
mov ebp, dword [sym.imp.WININET.dll_InternetGetLastResponseInfoW]
lea ebx, [esi + 0xc]
push ebx
mov dword [esi + 8], eax
call ebp
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403d3d
lea ecx, [eax - 1]
mov eax, dword [edi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
or edx, eax
jge 0x403cf6
push ecx
mov ecx, edi
call fcn.004026e0
mov edx, dword [edi]
lea ecx, [esp + 0x28]
push ecx
push edx
push ebx
call ebp
mov edx, dword [edi]
test edx, edx
jne 0x403d0b
xor eax, eax
jmp 0x403d21
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d10
sub eax, ebx
sar eax, 1
js 0x403d33
cmp eax, dword [edx - 8]
jg 0x403d33
mov dword [edx - 0xc], eax
mov ecx, dword [edi]
mov word [ecx + eax*2], 0
jmp 0x403d4b
push 0x80070057
call fcn.00401500
push 0xd
push str.Unknown_error
mov ecx, edi
call fcn.00403940
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
push eax
lea ecx, [esi + 0x10]
call fcn.004038c0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x403e80
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x4169bb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x41e5f4]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
push edi
mov eax, dword [0x41e5f4]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [esp + 0x248]
mov edi, dword [esp + 0x250]
mov ebx, dword [esp + 0x254]
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test eax, eax
mov dword [esp + 0x240], 0
mov dword [esi], vtable.CInternetSession.0
jne 0x403f20
push 0x104
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [esp + 0x258]
mov edx, dword [esp + 0x24c]
push ecx
push ebx
push edi
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 4], eax
jne 0x403f62
push 0x418570
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403c40
add esp, 0xc
push 0x41b74c
lea ecx, [esp + 0x18]
push ecx
call fcn.0040ba9a
mov eax, esi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0040ba0c
add esp, 0x234
ret 0x14

Function at 0x404020
Capabilities:
Connect to http server

Disassembly:
push 0xffffffffffffffff
push 0x416a28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x41e5f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
push esi
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push edi
push ebx
push ecx
mov dword [esp + 0x54], 0
mov dword [esi], vtable.CInternetConnection.0
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x4040c0
movzx edx, di
push edx
push ebx
push 0x4185c0
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00403c40
add esp, 0x14
push 0x41b74c
lea ecx, [esp + 0x18]
push ecx
call fcn.0040ba9a
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0x1c

Function at 0x404120
Capabilities:
Query remote server for available data

Disassembly:
sub esp, 0x1c
push esi
push 0
push 0
mov esi, ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x404162
mov edx, dword [esi + 4]
push str.Failed_to_query_available_data_length
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00403c40
add esp, 0xc
push 0x41b74c
lea ecx, [esp + 0xc]
push ecx
call fcn.0040ba9a
mov eax, dword [esp + 4]
pop esi
add esp, 0x1c
ret
Function at 0x404b20
Capabilities:
Terminate process

Disassembly:
push str.PDF_Update_Check_Event
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404b82
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push str.ck_WGS
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov esi, eax
push esi
call ebx
test eax, eax
jne 0x404b69
push 0x4189c0
push eax
call edi
mov esi, eax
push esi
call ebx
test eax, eax
je 0x404b7f
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x64
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x4054a0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4054c0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x4054d6
push 0x80004005
call fcn.00401500
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x405500
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x405518
push 0x80004005
call fcn.00401500
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x405525
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8