joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401331
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov eax, 0x823
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x14], 0x80004005
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4013a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov esi, eax
jle 0x401382
and esi, 0xffff
or esi, 0x80070000
push esi
push eax
push str.InternetCrackUrl
push 0x4927e4
call fcn.0040de80
push str._ERROR_CreateConnection__InternetCrackUrl___failed_
call fcn.00401030
add esp, 0x14
mov eax, esi
pop esi
pop ecx
ret 4
push 0x4000000
push 0
push 0
push 0
push str.WinInetPost_0.0.4
call dword [sym.imp.WININET.dll_InternetOpenW]
push 4
lea edx, [esp + 0x10]
push edx
push 0x4d
push eax
mov dword [esi + 0x40], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x40141c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov esi, eax
jle 0x4013f7
and esi, 0xffff
or esi, 0x80070000
push esi
push eax
push str.InternetOpen
push 0x4927e4
call fcn.0040de80
push str._ERROR_CreateConnection__InternetOpenW___failed_
call fcn.00401030
add esp, 0x14
mov eax, esi
pop esi
pop ecx
ret 4
push edi
push 0x401120
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
lea edi, [esi - 0xc]
push edi
push 0
push 3
push eax
mov eax, dword [esi + 0x40]
push ecx
push 0x50
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 0x44], eax
jne 0x4014d8
lea ecx, [esp + 8]
push str.InternetConnect
push ecx
call fcn.004012f0
mov edx, dword [esi + 0x40]
push edx
push str._param0___x
call fcn.0040de80
mov eax, dword [esi + 0x14]
push eax
push str._param1___s
call fcn.0040de80
push 0x50
push str._param2___d
call fcn.0040de80
mov ecx, dword [esi + 0x20]
push ecx
push str._param3___s
call fcn.0040de80
mov edx, dword [esi + 0x28]
push edx
push str._param4___s
call fcn.0040de80
push 0
push str._param6___x
call fcn.0040de80
push edi
push str._param7___x
call fcn.0040de80
add esp, 0x40
push str._ERROR_CreateConnection__InternetConnectW___failed_
call fcn.00401030
mov eax, dword [esp + 0xc]
add esp, 4
pop edi
pop esi
pop ecx
ret 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x401590
Capabilities:
Check if file exists
Get file size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
test eax, eax
push edi
mov edi, ecx
jne 0x4015aa
mov eax, 0x80070057
pop edi
add esp, 8
ret 8
push esi
push eax
lea esi, [edi + 0x40]
push str._s.tmp
push esi
call fcn.00401570
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401622
cmp byte [edi + 0x450], 0
je 0x401622
cmp byte [esp + 0x18], 0
jne 0x401622
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401605
pop esi
mov eax, 0x80700004
pop edi
add esp, 8
ret 8
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 8
ret 8
mov eax, dword [edi + 0x28]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x401639
mov dword [eax], 0
mov dword [eax + 4], 0
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 8
ret 8
Function at 0x401780
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x47c
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x478], eax
mov eax, dword [esp + 0x480]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x488]
push 0x492c18
push eax
mov dword [esp + 0x18], ecx
call fcn.00477f07
add esp, 8
test eax, eax
mov dword [esp + 4], eax
jne 0x4017e4
push str._GetMD5__Fail_to_open_file
call fcn.0040de80
add esp, 4
pop esi
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.00477bf8
add esp, 0x47c
ret 8
push edi
push str.Cryptdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x401808
push str._GetMD5__Fail_to_LoadLibrary
call fcn.0040de80
add esp, 4
jmp 0x4019db
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push str.MD5Init
push edi
call ebx
push str.MD5Update
push edi
mov ebp, eax
call ebx
push str.MD5Final
push edi
mov dword [esp + 0x1c], eax
call ebx
test ebp, ebp
mov dword [esp + 0x18], eax
je 0x4019cc
cmp dword [esp + 0x14], 0
je 0x4019cc
test eax, eax
je 0x4019cc
lea edx, [esp + 0x20]
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x90]
push 1
push ecx
xor ebx, ebx
call fcn.00478798
mov edi, eax
add esp, 0x10
cmp edi, 0x400
jne 0x401940
mov edx, dword [esp + 0x10]
push edx
call fcn.004784cd
add esp, 4
test eax, eax
jne 0x401940
add dword [esi + 0x210], 0x400
mov ebp, dword [esi + 0x1e8]
adc dword [esi + 0x214], eax
test ebp, ebp
je 0x401900
mov ecx, dword [esi + 0x210]
push eax
mov eax, dword [esi + 0x214]
push 0x64
push eax
push ecx
call fcn.00478870
mov ecx, dword [esi + 0x1fc]
push ecx
mov ecx, dword [esi + 0x1f8]
push ecx
push edx
push eax
call fcn.004787c0
mov ecx, eax
mov eax, ebx
mov edi, edx
cdq
cmp ecx, eax
jne 0x4018e9
cmp edi, edx
je 0x401900
mov edx, dword [esi + 0x1ec]
push edx
push 0
push 0
push 0x47b
mov ebx, ecx
call ebp
add esp, 0x10
push 0x400
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push edx
push 0x400
lea eax, [esp + 0x90]
push 1
push eax
call fcn.00478798
mov edi, eax
add esp, 0x10
cmp edi, 0x400
je 0x401880
test edi, edi
je 0x401975
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x401963
mov ecx, dword [esi + 0x1ec]
push ecx
push 0
push 0
push 0x47b
call eax
add esp, 0x10
push edi
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x28]
push eax
call dword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
call dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push edx
call fcn.00477fdc
mov ebp, dword [esp + 0x20]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 4
mov edi, ebp
xor esi, esi
lea esp, [esp]
movzx eax, byte [esp + esi + 0x78]
push eax
push 0x492b5c
push edi
call ebx
add esi, 1
add esp, 0xc
add edi, 4
cmp esi, 0x10
jl 0x4019a0
push ebp
push str._GetMd5__MD5:__s
call fcn.0040de80
add esp, 8
jmp 0x4019d9
push 0x492af8
call fcn.0040de80
add esp, 4
pop ebp
pop ebx
mov ecx, dword [esp + 0x480]
pop edi
pop esi
xor ecx, esp
call fcn.00477bf8
add esp, 0x47c
ret 8
Function at 0x401c80
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov edi, dword [esp + 0x21c]
test edi, edi
mov esi, ecx
jne 0x401cad
mov eax, 0x80070057
jmp 0x401d58
mov eax, dword [esi + 0xc]
push ebx
push ebp
push eax
push edi
lea ecx, [esp + 0x1c]
push str._s.tmp
push ecx
call fcn.00401570
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebp
test eax, eax
je 0x401ce2
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [esi + 0x40]
push ebx
call ebp
test eax, eax
je 0x401d40
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x401d40
lea edx, [esp + 0x10]
push str.MoveFile
push edx
mov dword [esp + 0x18], 0x80004005
call fcn.004012f0
add esp, 8
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401d40
lea ecx, [esp + 0x10]
push 0x492c2c
push ecx
call fcn.004012f0
mov eax, dword [esp + 0x18]
add esp, 8
jmp 0x401d56
push 0
push edi
mov ecx, esi
call fcn.00401590
mov dword [esi + 0x454], 0x80700001
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00477bf8
add esp, 0x210
ret 4
Function at 0x4037c0
Capabilities:
Check internet connectivity via wininet
Parse url
Reference google public dns server
Resolve dns

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
test ecx, ecx
push edi
mov edi, 0x80004005
je 0x403862
mov eax, 0x823
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
lea eax, [esi + 0x10]
push eax
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x403862
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov edi, eax
jle 0x403818
and edi, 0xffff
or edi, 0x80070000
push edi
push eax
push str.InternetCrackUrl
push 0x4927e4
call fcn.0040de80
push str._ERROR_CheckServerReachability__InternetCrackUrl___failed_
call fcn.00401030
add esp, 0x14
cmp edi, 0x80004005
jne 0x40385a
push str.8.8.8.8
mov ecx, esi
call fcn.00402ab0
test eax, eax
jge 0x40385a
push str.8.8.4.4
mov ecx, esi
call fcn.00402ab0
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x40388a
push str._ERROR_CheckServerReachability__InternetGetConnectedState___failed_
call fcn.00401030
add esp, 4
jmp 0x40383e
mov eax, dword [esi + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 8
push 1
push eax
mov dword [esp + 0x28], 0
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
jne 0x40383e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40383e
push 1
push eax
xor esi, esi
call sub.DNSAPI.dll_DnsRecordListFree
pop edi
mov eax, esi
pop esi
pop ecx
ret 4

Function at 0x403960
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
mov esi, ecx
lea ecx, [esp + 4]
push ecx
push 0
push esi
push 0x4037a0
push 0
push 0
mov dword [esp + 0x1c], 0
mov dword [esi + 0x10], eax
call fcn.00478e14
mov dword [esi + 0x34], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 0x7fff0001
add eax, 0x8000ffff
pop esi
pop ecx
ret 4
Function at 0x405a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp ecx, ebx
push edi
je 0x405a97
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esi + 4], ebx
je 0x405ab5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x405ba3
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x405ba3
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
xor ebp, ebp
cmp edi, ebp
je 0x405ba3
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [esi + 8], eax
je 0x405ba3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
je 0x405b96
push ebx
push edi
push eax
call fcn.00478f00
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ebp
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x405b8c
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00405930
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x405b8c
mov ecx, dword [eax + 8]
cmp ecx, ebp
mov dword [eax + 8], ebp
jne 0x405b7a
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x405b89
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 4], ebp
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
Function at 0x407530
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x407606
mov eax, dword [esi + 8]
push ebp
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 0xc]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
push 0
lea edx, [esi + 0x644]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebp, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call ebp
test eax, eax
je 0x4075ca
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
jmp 0x4075a0
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call ebx
cmp dword [esi + 0xd30], 0
jne 0x4075d6
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
jne 0x4075a0
pop edi
pop ebx
mov eax, dword [esi + 0xd30]
pop ebp
pop esi
add esp, 0x1c
ret
mov eax, dword [esi + 8]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 0xc]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0xd30]
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x1c
ret
push str.DoModal_fail___NO_window_handle
call fcn.0040de80
mov eax, dword [esi + 0xd30]
add esp, 4
pop esi
add esp, 0x1c
ret

Function at 0x4077e0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 2
je 0x407822
sub eax, 0x4fe
je 0x407810
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push edx
push ecx
push eax
mov ecx, esi
call fcn.00406e00
pop esi
ret 0x10
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov dword [esi + 0xd30], edx
xor eax, eax
pop esi
ret 0x10
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x1c]
push ecx
push edx
mov ecx, esi
call eax
mov ecx, dword [esi + 8]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [esi + 0xc]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
pop esi
ret 0x10
Function at 0x408b40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x48f230
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push 0xe
push esi
push edi
call fcn.004065b0
xor ebp, ebp
push ebp
push 1
push esi
push edi
lea ecx, [ebx + 0x68c]
mov dword [esp + 0x30], ebp
mov dword [ebx], vtable.CDLController.0
call fcn.00408dc0
push 0x14
push esi
lea ecx, [ebx + 0x1550]
push edi
mov byte [esp + 0x2c], 1
mov dword [ebx + 0xd2c], ebp
call fcn.00409e90
push 0xe
push esi
push edi
lea ecx, [ebx + 0x1e28]
mov byte [esp + 0x2c], 2
call fcn.0040a510
push 0xe
push esi
push edi
lea ecx, [ebx + 0x26d4]
mov byte [esp + 0x2c], 3
call fcn.0040a510
fldz
push 0x492aa0
fst dword [ebx + 0x3084]
lea eax, [ebx + 0x308c]
fstp dword [ebx + 0x3088]
push 0x104
push eax
mov byte [esp + 0x2c], 4
mov dword [ebx + 0x2f80], ebp
mov dword [ebx + 0x2f84], ebp
mov dword [ebx + 0x2f88], ebp
mov dword [ebx + 0x2f8c], ebp
mov dword [ebx + 0x3080], ebp
mov dword [ebx + 0x3294], ebp
mov dword [ebx + 0x3298], ebp
mov dword [ebx + 0x32a0], ebp
mov dword [ebx + 0x32a4], ebp
mov dword [ebx + 0x32a8], ebp
mov dword [ebx + 0x32ac], ebp
call fcn.00477a95
lea esi, [ebx + 0x2f90]
mov ecx, 0x3a
lea edi, [esi + 8]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov eax, 0x4943ac
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x408c70
sub eax, ecx
sar eax, 1
add eax, 1
push eax
lea ecx, [ebx + 0x220]
push 0x4943ac
push ecx
call fcn.00478ec2
mov eax, dword [ebx + 4]
push 0x400
push 0x104
lea edx, [ebx + 0xd30]
push edx
push 0x1f4
push eax
call fcn.0040e380
mov edx, dword [ebx + 4]
push 0x400
push 0x104
lea ecx, [ebx + 0xf38]
push ecx
push 0x1f7
push edx
call fcn.0040e380
mov eax, dword [esp + 0x5c]
add esp, 0x34
cmp eax, ebp
je 0x408ce9
push eax
lea ecx, [ebx + 0x1550]
call fcn.0040a080
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
mov dword [esp + 0x34], ebp
call fcn.00408770
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x40c490
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, dword [esp + 0x130]
test esi, esi
push edi
mov edi, dword [esp + 0x130]
jne 0x40c4d4
pop edi
mov eax, 0x80070057
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00477bf8
add esp, 0x124
ret
push ebx
lea eax, [esp + 0x10]
push eax
mov ebx, 0x80004005
mov word [esi], 0
mov dword [esp + 0x14], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x14]
cmp eax, 5
ja 0x40c50d
push 0x400
push 0x104
push esi
push 0xfb
jmp 0x40c522
cmp eax, 6
jb 0x40c52b
push 0x400
push 0x104
push esi
push 0xfa
push edi
call fcn.0040e380
add esp, 0x14
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c530
sub eax, edx
sar eax, 1
je 0x40c543
xor ebx, ebx
mov ecx, dword [esp + 0x12c]
mov eax, ebx
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00477bf8
add esp, 0x124
ret
Function at 0x40cfe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x61c
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
push ebp
mov ebp, dword [esp + 0x628]
push esi
push 0x104
lea eax, [esp + 0x220]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea ecx, [esp + 0x428]
push ecx
push ebx
lea edx, [esp + 0x228]
push ebx
push edx
call fcn.004794f2
add esp, 0x14
xor eax, eax
movzx ecx, word [eax + str.SoftwareCyberLink_]
mov word [esp + eax + 0x21c], cx
add eax, 2
cmp cx, bx
jne 0x40d031
push edi
lea edi, [esp + 0x220]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40d053
mov ecx, 6
mov esi, 0x4946bc
rep movsd dword es:[edi], dword [esi]
push 0x206
lea eax, [esp + 0x1e]
push ebx
push eax
movsw word es:[edi], word [esi]
mov dword [esp + 0x1c], ebx
mov word [esp + 0x24], bx
call fcn.00477c40
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
lea edx, [esp + 0x22c]
push edx
push SysReAllocString
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop edi
jne 0x40d119
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push str.DebugUrl
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40d119
lea eax, [esp + 0x14]
mov edx, ebp
mov ecx, eax
sub edx, ecx
jmp 0x40d0f0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40d0f0
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00477bf8
add esp, 0x61c
ret
mov ecx, dword [esp + 0x624]
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.00477bf8
add esp, 0x61c
ret

Function at 0x40de80
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x40004
call fcn.00477c10
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x40000], eax
cmp byte [0x4b1c68], 0
je 0x40defa
mov ecx, dword [esp + 0x40008]
lea eax, [esp + 0x4000c]
push eax
push ecx
lea edx, [esp + 0x20008]
push edx
call fcn.004780ef
push 0x1fffe
lea eax, [esp + 0x12]
push 0
push eax
mov word [esp + 0x18], 0
call fcn.00477c40
lea ecx, [esp + 0x20018]
push ecx
lea edx, [esp + 0x1c]
push str._CLDLer___s_n
push edx
call fcn.00401570
add esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x40000]
xor ecx, esp
call fcn.00477bf8
add esp, 0x40004
ret
Function at 0x40df10
Capabilities:
Get file version info

Disassembly:
sub esp, 0x424
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
mov ebp, dword [esp + 0x434]
push esi
push edi
lea eax, [esp + 0x18]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
push 0x206
lea ecx, [esp + 0x26]
push 0
push ecx
mov edi, eax
mov word [esp + 0x2c], 0
call fcn.00477c40
add esp, 0xc
test edi, edi
je 0x40e051
push edi
call fcn.00477742
mov esi, eax
add esp, 4
test esi, esi
jne 0x40df96
lea eax, [esp + 0x20]
mov edx, ebp
mov ecx, eax
sub edx, ecx
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40df80
xor al, al
jmp 0x40e071
mov edx, dword [esp + 0x18]
push esi
push edi
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.VarFileInfoTranslation
xor edi, edi
push esi
mov dword [esp + 0x20], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e048
push 0x206
lea edx, [esp + 0x22e]
push edi
push edx
mov word [esp + 0x234], di
call fcn.00477c40
mov eax, dword [esp + 0x28]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x23c]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.00401570
add esp, 0x1c
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x230]
push eax
push esi
mov dword [esp + 0x24], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e048
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40e048
cmp dword [esp + 0x10], edi
je 0x40e048
push eax
push 0x495010
push ebp
call fcn.00401570
push esi
call fcn.00477e1a
add esp, 0x10
jmp 0x40e06f
push esi
call fcn.00477e1a
add esp, 4
lea eax, [esp + 0x20]
mov edx, ebp
mov ecx, eax
sub edx, ecx
jmp 0x40e060
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e060
mov al, 1
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00477bf8
add esp, 0x424
ret

Function at 0x40e230
Capabilities:
Identify system language via api

Disassembly:
cmp dword [esp + 8], 0
je 0x40e23f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x40e245
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push esi
mov esi, dword [esp + 8]
movzx eax, ax
push esi
push eax
call fcn.0040d610
push esi
push str.GetUserDefaultLanguageFromCurrentOSSetting:_s
call fcn.0040de80
add esp, 0x10
pop esi
ret