joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017b0
Capabilities:
Create thread

Disassembly:
cmp dword [edi + 0x8c], 0
push ebp
mov ebp, dword [esp + 8]
je 0x4017c4
xor eax, eax
pop ebp
ret 8
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4017d0
push ebx
push esi
sub eax, edx
sar eax, 1
push eax
push ebp
lea esi, [edi + 0x10]
call fcn.00402530
push 0
lea ebx, [edi + 0x2c]
push 0x4ef7d8
mov esi, ebx
call fcn.00402530
push 0
lea esi, [edi + 0x48]
push 0x4ef7d8
call fcn.00402530
mov edx, dword [esp + 0x14]
test edx, edx
je 0x40183a
mov eax, edx
lea esi, [eax + 2]
jmp 0x401820
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401820
sub eax, esi
sar eax, 1
push eax
push edx
mov esi, ebx
call fcn.00402530
jmp 0x401847
push esi
mov edx, ebx
mov ecx, ebp
call fcn.00401af0
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
cmp dword [edi + 4], ebx
jne 0x40185e
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x40186d
pop esi
pop ebx
xor eax, eax
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [edi + 8], ebx
jne 0x401882
push ebx
push ebx
push ebx
push ebx
call esi
mov dword [edi + 8], eax
mov ecx, dword [edi + 0x88]
cmp ecx, ebx
je 0x40189a
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x88], ebx
call fcn.00402040
test eax, eax
je 0x4018ba
push 0x58
call fcn.004b9140
add esp, 4
cmp eax, ebx
je 0x4018ea
mov esi, eax
call fcn.00402880
jmp 0x4018ec
push 0x30
call fcn.004b9140
add esp, 4
cmp eax, ebx
je 0x4018ea
mov dword [eax], vtable.CWininetFile.0
mov dword [eax + 0x24], 7
mov dword [eax + 0x20], ebx
mov word [eax + 0x10], bx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
jmp 0x4018ec
xor eax, eax
push ebx
push ebx
push ebx
push ebx
push 0x14
push 0x96
push 0x7d
push 0x19
push ebx
push ebx
push 0x4ef794
push ebx
mov dword [edi + 0x88], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x439d30
push 0xfffffffffffffffc
push eax
mov dword [edi + 0x64], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push 0x401bf0
push ebx
push ebx
mov dword [edi + 0x8c], 1
mov dword [esp + 0x28], ebx
call fcn.004b92a4
add esp, 0x18
cmp eax, ebx
mov dword [edi + 0xc], eax
jne 0x401951
mov dword [edi + 0x8c], ebx
mov ecx, dword [edi + 8]
push 0xea60
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
cmp dword [edi + 0x90], ebx
pop esi
pop ebx
sete al
pop ebp
ret 8
Function at 0x401af0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
mov ebp, dword [esp + 0x420]
push esi
push edi
push 0x410
lea eax, [esp + 0x12]
push 0
push eax
mov edi, ecx
mov esi, edx
mov word [esp + 0x18], 0
call fcn.004be240
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
push edi
call fcn.004b8944
mov edi, eax
add esp, 8
test edi, edi
je 0x401bb5
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.QMDownload
lea edx, [esp + 0x14]
push edx
call ebx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
add edi, 2
push edi
lea ecx, [esp + 0x14]
push ecx
call ebx
lea eax, [esp + 0x10]
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b83
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00402530
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ba2
sub eax, edx
sar eax, 1
push eax
push edi
jmp 0x401bc8
push 0
push 0x4ef7d8
call fcn.00402530
push 0
push 0x4ef7d8
mov esi, ebp
call fcn.00402530
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b83ee
add esp, 0x418
ret

Function at 0x402040
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
call fcn.004be240
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4020d5
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x402098
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x4020b1
cmp word [esp + 0x114], ax
jae 0x4020d5
xor eax, eax
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004b83ee
add esp, 0x120
ret
test eax, eax
jne 0x4020d5
cmp word [esp + 0x114], 3
jae 0x4020d5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004b83ee
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
mov eax, 1
call fcn.004b83ee
add esp, 0x120
ret
Function at 0x403480
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x2c
mov edi, eax
call fcn.004b9140
add esp, 4
test eax, eax
je 0x4034ac
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], 0
mov word [eax + 4], 0
mov esi, eax
jmp 0x4034ae
xor esi, esi
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4034b3
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00402530
xor eax, eax
mov dword [esi + 0x28], 2
lea edi, [esi + 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x403380
push 0
push 0
call fcn.004b92a4
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x40350c
call fcn.00402600
pop edi
pop esi
pop ebx
pop ecx
ret 4
push 0x2710
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403533
cmp dword [edi], 3
jne 0x403533
mov ecx, dword [esp + 0x14]
push 0xc
push edi
push 0x26
push ecx
call fcn.00403b40
add esp, 0x10
call fcn.00402600
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x403750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp dword [0x5154d4], 0
jne 0x4037d5
push 0x208
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.004be240
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4ef8ac
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x5154d4], eax
mov eax, ecx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004b83ee
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, 1
call fcn.004b83ee
add esp, 0x210
ret
Function at 0x4048c0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x840
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x83c], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x208
lea eax, [esp + 0x22e]
push esi
push eax
mov ebx, ecx
mov word [esp + 0x234], si
call fcn.004be240
add esp, 0xc
push 0x104
lea ecx, [esp + 0x22c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea edx, [esp + 0x22]
push esi
push edx
mov word [esp + 0x28], si
call fcn.004be240
push 0x208
lea eax, [esp + 0x446]
push esi
push eax
mov word [esp + 0x44c], si
call fcn.004be240
push 0x208
lea ecx, [esp + 0x65e]
push esi
push ecx
mov word [esp + 0x664], si
call fcn.004be240
lea edx, [esp + 0x458]
push edx
lea eax, [esp + 0x250]
push eax
lea edx, [esp + 0x66c]
lea ecx, [esp + 0x48]
call fcn.00404520
xor ebp, ebp
xor edi, edi
add esp, 0x2c
cmp word [esp + 0x1c], si
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
je 0x4049c8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
call fcn.00404810
add esp, 0xc
test eax, eax
jne 0x4049c0
mov dword [esp + 0x10], 1
jmp 0x4049c8
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
cmp ebx, esi
jne 0x4049d0
xor eax, eax
jmp 0x4049e4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4049d5
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
mov eax, 0x515638
call fcn.00401470
mov ecx, dword [esp + 0x10]
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x238]
lea ecx, [esp + 0x444]
call fcn.00403ef0
add esp, 0x10
call fcn.00404410
mov eax, dword [0x5154d8]
pop edi
cmp eax, esi
pop esi
pop ebp
pop ebx
je 0x404a2e
mov dword [eax + 0x1c], 0x2710
call fcn.00404410
mov ecx, dword [esp + 0x83c]
xor ecx, esp
mov eax, 1
call fcn.004b83ee
add esp, 0x840
ret
Function at 0x405150
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esp + 0xc], 0
mov ebx, eax
test edi, edi
mov esi, dword [edi + 4]
je 0x405170
cmp edi, edi
je 0x405175
call fcn.004b9ac9
cmp ebx, esi
je 0x4051d6
test edi, edi
jne 0x405182
call fcn.004b9ac9
cmp ebx, dword [edi + 4]
jne 0x40518c
call fcn.004b9ac9
mov ecx, dword [ebx + 8]
cmp dword [ecx + 0x14], 0
je 0x4051be
mov edx, dword [ecx + 4]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4051be
add eax, 0xffffffff
js 0x4051cc
mov ecx, edx
cmp eax, dword [ecx - 0xc]
jg 0x4051cc
cmp word [ecx + eax*2], 0x30
jne 0x4051be
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add dword [esp + 0xc], 1
cmp ebx, dword [edi + 4]
jne 0x4051c8
call fcn.004b9ac9
mov ebx, dword [ebx]
jmp 0x405165
push 0x80070057
call fcn.00401350
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x406cc0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4e4f20
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5143cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143cc
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov eax, dword [0x5143cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143cc
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push str.g_Install.Init_...
mov ecx, 0x5158b0
mov byte [esp + 0x28], 1
call fcn.00489840
add esp, 4
call fcn.0040bbb0
mov esi, eax
push esi
push str.g_Install.Init_return:_d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
cmp esi, ebx
jne 0x406d9f
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x24], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x406ee7
mov edx, dword [esp + 0x2c]
push edi
call fcn.00407030
test eax, eax
jne 0x406dd5
push str.ProcessCommandLine_return_false
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
push 0xe
mov dword [0x515690], 0xe
call fcn.0040cd20
jmp 0x406d50
cmp dword [edi + 0x18], ebx
je 0x406e15
push str.DbgExtraceFiles_...
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [edi + 0x20]
mov edi, dword [edi + 0x1c]
add esp, 4
push eax
mov ecx, 0x515724
call fcn.004178f0
push eax
push str.DbgExtraceFiles_return:_d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
jmp 0x406d50
push edi
call fcn.00407680
test eax, eax
jne 0x406e55
push 8
mov eax, 0x64
call fcn.00422ff0
push 8
mov dword [0x515690], 8
call fcn.0040cd20
lea ecx, [esp + 0x18]
call fcn.004016d0
lea ecx, [esp + 0x14]
call fcn.004016d0
xor eax, eax
jmp 0x406ee7
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
cmp ecx, 5
ja 0x406eb2
jb 0x406e69
cmp ah, bl
ja 0x406eb2
push 4
call fcn.0040cd20
push 4
mov eax, 0x64
mov dword [0x515690], 4
call fcn.00422ff0
push str.IsWinXPAndLater_return_false
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
cmp dword [edi + 4], ebx
jne 0x406e3c
push 0x40
push 0x4efd3c
push 0x4efd48
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x406e3c
call fcn.004755c0
mov ecx, eax
call fcn.00475630
push str.appRes_Init_end
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004016d0
lea ecx, [esp + 0x14]
call fcn.004016d0
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x407b80
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x41c], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x21e]
push edi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov word [esp + 0x224], di
call fcn.004be240
push 0x206
lea ecx, [esp + 0x22]
push edi
push ecx
mov word [esp + 0x28], di
call fcn.004be240
add esp, 0x18
cmp ebx, edi
mov dword [esp + 0xc], 0x208
je 0x407d8b
push ebp
push esi
push 0x208
push edi
push ebx
call fcn.004be240
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
mov esi, 1
mov edi, edi
push esi
push str.SOFTWARETencentPlatForm_Type_List_d
lea edx, [esp + 0x228]
call fcn.00409860
add esp, 8
lea edx, [esp + 0xc]
push edx
push 1
push edi
lea eax, [esp + 0x22c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x407cc2
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407cc2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push str.TypePath
push eax
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407cb3
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x407c83
push str.BinQQ.exe
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407cb3
lea eax, [esp + 0x18]
mov edx, ebx
mov ecx, eax
mov dword [esp + 0x10], 1
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x407ca4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407cc6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
add esi, 1
cmp esi, 5
jle 0x407c00
cmp dword [esp + 0x10], edi
jne 0x407d6f
lea edx, [esp + 0xc]
push edx
push 1
push edi
push str.SOFTWARETencentQQ2009
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
cmp eax, edi
jne 0x407d60
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407d20
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push str.Install
push eax
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x407d60
push str.BinQQ.exe
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407d60
lea eax, [esp + 0x18]
mov edx, ebx
mov ecx, eax
mov dword [esp + 0x10], 1
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x407d51
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407d6f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004b83ee
add esp, 0x420
ret
mov ecx, dword [esp + 0x420]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004b83ee
add esp, 0x420
ret
Function at 0x407db0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407e09
mov eax, dword [esp]
test eax, eax
mov dword [esp + 4], 1
je 0x407e17
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.ShowUpdateTips
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
test eax, eax
je 0x407e17
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret

Function at 0x409740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409757
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409788
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x409784
cmp esi, eax
jae 0x409788
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x409774
cmp esi, eax
jb 0x40978e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x409880
Capabilities:
Set registry value

Disassembly:
mov edx, dword [eax]
push ebx
xor ebx, ebx
test edx, edx
je 0x4098bf
mov eax, edi
push esi
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409890
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push ecx
push edi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
mov eax, 1
je 0x4098c1
mov eax, ebx
pop ebx
ret 4

Function at 0x4098d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [eax]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 4
je 0x40991f
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40991f
cmp dword [esp + 0x10], 4
jne 0x40991f
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
lea eax, [esi + 1]
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x409930
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
je 0x4099fc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push ebp
push eax
call ebx
cmp dword [esp + 0x10], 1
jne 0x4099fc
call fcn.00401510
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x4099a1
mov eax, esi
call fcn.00401150
mov edi, dword [esi]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x4099fc
mov edx, dword [esp + 0x20]
shr edx, 1
mov word [edi + edx*2], ax
mov edx, dword [esi]
test edx, edx
je 0x4099e4
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4099d3
sub eax, edi
sar eax, 1
js 0x409a0a
cmp eax, dword [edx - 8]
jg 0x409a0a
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0x80070057
call fcn.00401350
int3

Function at 0x409a70
Capabilities:
Set registry value

Disassembly:
mov eax, dword [eax]
push esi
xor esi, esi
test eax, eax
je 0x409a92
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
lea eax, [esi + 1]
je 0x409a94
mov eax, esi
pop esi
ret 4
Function at 0x40a970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push eax
call fcn.00409c00
mov ebx, dword [0x5143f0]
xor ebp, ebp
push 0x4f0328
push str.HTML
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call fcn.004b9d0f
add esp, 8
test eax, eax
jne 0x40a9aa
push 0x17
jmp 0x40a9af
push 0x4f0328
push 0x6a
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
jne 0x40a9e7
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebp
push esi
jne 0x40aa27
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, ebp
jne 0x40aa6c
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x40aa9a
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x10]
call fcn.004016d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
call fcn.00416db0
test eax, eax
jl 0x40aac1
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
mov edx, ebp
call fcn.00416d60
mov ebx, 1
jmp 0x40aac5
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40aae2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.004016d0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x40ada0
Capabilities:
Access peb ldr_data
Check if file exists
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e4f20
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x51571c]
add eax, 0xfffffff0
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x14], eax
push 6
push 0x4f0318
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], 0
call fcn.004060a0
mov ebp, dword [esp + 0x14]
mov ecx, ebp
call fcn.0040a970
lea ecx, [esp + 0x18]
push 0x51571c
push ecx
mov ebx, 0x4f0318
call fcn.00413a60
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ae41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
mov ecx, 0x5158b0
je 0x40aec4
push str.Report_SetDrPath_begin...
call fcn.00489840
lea ecx, [esp + 0x1c]
push 0x51571c
push ecx
mov ebx, 0x4f0318
call fcn.00413a60
add esp, 0xc
mov byte [esp + 0x24], 1
mov eax, dword [eax]
mov edx, dword [0x515800]
mov edi, eax
call fcn.00483a80
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aea4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040ab00
mov dword [0x5154fc], eax
call fcn.0040ac50
mov dword [0x515500], eax
push str.Report_SetDrPath_end...
mov ecx, 0x5158b0
jmp 0x40aec9
push str.Cant_Find_dr.dll_Cant_Load_Report_Instance
call fcn.00489840
lea eax, [ebp - 0x10]
add esp, 4
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aef5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret