joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b50
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
push str.http:__pc.weixin.qq.com_
push 0x41dbb4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x402b88
push 1
push 0
push str.http:__pc.weixin.qq.com_
push str.iexplore.exe
push 0x41dbb4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x402b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x50], eax
call fcn.004010d0
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x402bfc
inc eax
push eax
push dword [ebp - 0x34]
call fcn.00401a60
cmp dword [ebp - 0x50], 0xc
setge bl
test bl, bl
jne 0x402ce4
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00401b80
test eax, eax
jg 0x402ccc
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], 0
push eax
push 0xf003f
push 0
push str.SoftwareTencentWeChat
push 0x80000001
mov dword [ebp - 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402c7d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push str.IgnoreSysVer
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 1
je 0x402cd2
cmp edi, 1
jne 0x402c98
push str.Get_system_version_error__do_you_want_to_continue_
jmp 0x402c9d
push str.S_MRHr_gW
push esi
call fcn.00404d50
add esp, 8
push 1
push dword [ebp - 0x54]
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
jne 0x402cc5
lea ecx, [ebp - 0x34]
call fcn.00401ac0
xor bl, bl
jmp 0x402ce4
call fcn.00404120
jmp 0x402cd2
cmp eax, 4
setge bl
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x402ce4
inc eax
push eax
push dword [ebp - 0x34]
call fcn.00401a60
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jb 0x402cf6
inc ecx
push ecx
push dword [ebp - 0x4c]
call fcn.00401a60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040655e
mov esp, ebp
pop ebp
ret
Function at 0x402d20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416e08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x421008]
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, edx
mov edi, dword [ebp + 8]
cmp ecx, 1
jne 0x402d5b
push str.The_current_version_is_required_to_run_on_Windows_7_or_above.Please_install_the_available_version_or_upgrade_the_system.Click_OK_to_download_and_install_the_available_version.
jmp 0x402d60
push str.S_MRHr_g
push esi
call fcn.00404d50
add esp, 8
push 1
push edi
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x402e16
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push ecx
call fcn.00401fa0
xor ecx, ecx
mov dword [ebp - 0x18], 7
add esp, 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x2c]
test al, al
je 0x402db9
push 0x42
push str.http:__dldir1.qq.com_weixin_Windows_WeChat_for_XP_SP3_To_Vista.exe
jmp 0x402dc0
push 0x39
push str.http:__dldir1.qq.com_weixin_Windows_WeChat_for_XP_SP2.exe
call fcn.00401870
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x2c]
cmp eax, 8
cmovae esi, dword [ebp - 0x2c]
test esi, esi
je 0x402e07
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push 0
push 0
push esi
push 0x41dbb4
push 0
call edi
cmp eax, 0x20
jg 0x402e04
push 1
push 0
push esi
push str.iexplore.exe
push 0x41dbb4
push 0
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x402e16
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.00401a60
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.0040655e
mov esp, ebp
pop ebp
ret
Function at 0x403180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416e9e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
sub esp, 0x18
mov dword [ebp - 4], eax
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x4031e6
mov eax, dword [ecx]
jmp 0x4031e8
mov eax, ecx
push 0x13
xor edx, edx
push str.pluginUpdateExePath
mov word [eax], dx
call fcn.00401870
lea ecx, [ebp - 0x28]
call fcn.00403f80
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x28]
add esp, 0x18
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x40323a
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004019e0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x403309
inc ecx
push ecx
jmp 0x403301
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x403257
mov eax, dword [ecx]
jmp 0x403259
mov eax, ecx
push 0xd
xor edx, edx
push str.updateExePath
mov word [eax], dx
call fcn.00401870
lea ecx, [ebp - 0x28]
call fcn.00403f80
add esp, 0x18
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
jne 0x4032ec
lea ecx, [ebp - 0x48]
call fcn.00402f00
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4032c7
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4032aa
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00401a60
xor eax, eax
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00401970
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x4032dd
inc eax
push eax
push dword [ebp - 0x48]
call fcn.00401a60
push 0x11
push str.WeChatUpdate.exe
lea ecx, [ebp - 0x28]
call fcn.00404950
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004019e0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x403309
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00401a60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040655e
mov esp, ebp
pop ebp
ret
Function at 0x403be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x400
push eax
push 0xf003f
push 0
push str.SoftwareTencentWeChat
push 0x80000001
mov edi, edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403c4e
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403c4e
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040655e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0040655e
mov esp, ebp
pop ebp
ret

Function at 0x403c70
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x403c7e
xor al, al
pop esi
ret
cmp dword [esi + 0x14], 8
jb 0x403c86
mov ecx, dword [esi]
push edi
lea edi, [eax*2 - 2]
push 1
lea eax, [edi + ecx]
push str..__
push eax
call fcn.00409ed8
add esp, 0xc
test eax, eax
je 0x403cd5
cmp dword [esi + 0x14], 8
jb 0x403caf
mov eax, dword [esi]
jmp 0x403cb1
mov eax, esi
push 1
add eax, edi
push 0x41e410
push eax
call fcn.00409ed8
add esp, 0xc
test eax, eax
je 0x403cd5
push 1
push str..__
mov ecx, esi
call fcn.00404950
cmp dword [esi + 0x14], 8
pop edi
jb 0x403cde
mov esi, dword [esi]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x403cf4
cmp eax, 0xb7
jne 0x403c7a
mov al, 1
pop esi
ret
Function at 0x403d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416f32
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x42c], esi
mov dword [esi + 0x10], 0
jb 0x403d6a
mov eax, dword [esi]
jmp 0x403d6c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x208
push ecx
lea eax, [ebp - 0x420]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x428], 1
call fcn.00408700
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00408700
add esp, 0x18
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x403e02
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x403e02
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push dword [ebp - 0x424]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp word [ebp - 0x218], 0
jne 0x403e10
xor ecx, ecx
jmp 0x403e2f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401870
push 8
push 0x41e414
mov ecx, esi
call fcn.00404950
push 8
push str.WeChat_
mov ecx, esi
call fcn.00404950
mov ecx, esi
call fcn.00403c70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040655e
mov esp, ebp
pop ebp
ret
Function at 0x403f80
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416fb3
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00403d00
push 9
push str.All_Users
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00404950
push 8
push str.config_
lea ecx, [ebp - 0x230]
call fcn.00404950
push 0xc
push str.configEx.ini
lea ecx, [ebp - 0x230]
call fcn.00404950
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404021
xor bl, bl
jmp 0x4040b0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00408700
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp + 8]
cmovae eax, dword [ebp - 0x230]
cmp dword [ebp + 0x1c], 8
push eax
cmovae ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push pe_nt_image_headers32
push eax
push str.Error
push ecx
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x404082
xor ecx, ecx
jmp 0x40409f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404090
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401870
mov bl, 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4040c8
inc eax
push eax
push dword [ebp - 0x230]
call fcn.00401a60
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp ecx, 8
jb 0x4040f7
inc ecx
push ecx
push dword [ebp + 8]
call fcn.00401a60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040655e
mov esp, ebp
pop ebp
ret

Function at 0x404120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push 0xf003f
push 0
push str.SoftwareTencentWeChat
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40418b
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push str.IgnoreSysVer
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40418b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040655e
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0040655e
mov esp, ebp
pop ebp
ret
Function at 0x4041b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416feb
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0xf
mov byte [ebp - 0x459], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x4043b9
cmp edi, 0xffffffff
je 0x4043b9
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4043aa
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp word [ebp - 0x434], ax
jne 0x40425a
xor ecx, ecx
jmp 0x404272
lea ecx, [ebp - 0x434]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404263
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401870
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00408700
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push eax
lea eax, [ebp - 0x210]
push pe_nt_image_headers32
push eax
call fcn.0040b5c9
lea ecx, [ebp - 0x210]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042d1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040a0e5
add esp, 8
cmp word [ebp - 0x210], 0
jne 0x404301
xor eax, eax
jmp 0x40431f
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404310
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401870
push 0x10
push ecx
push str.wechatupdate.exe
lea ecx, [ebp - 0x228]
call fcn.00404870
test eax, eax
jns 0x40438b
lea eax, [ebp - 0x458]
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x404374
inc eax
push eax
push dword [ebp - 0x228]
call fcn.00401a60
test esi, esi
jne 0x404230
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x459]
jmp 0x4043bb
mov ecx, dword [ebp - 0x214]
mov byte [ebp - 0x459], 1
cmp ecx, 8
jb 0x4043aa
inc ecx
push ecx
push dword [ebp - 0x228]
call fcn.00401a60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x459]
jmp 0x4043bb
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040655e
mov esp, ebp
pop ebp
ret
Function at 0x406190
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4061c1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4061b0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x407090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45586d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x47110c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0042ca05
mov edi, eax
add esp, 4
test edi, edi
je 0x40712d
push 1
mov dword [ebp - 4], 0
call fcn.00418d22
add esp, 4
mov dword [edi + 4], eax
jmp 0x40712f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.004037d0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x40718a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40718a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x4071a6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4071c9
cmp byte [ebp + 0xc], 0
je 0x4071b5
push esi
call fcn.004193fb
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4071d5
mov esi, str.ios_base::badbit_set
jmp 0x4071e5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00407210
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.004042c0
push 0x46d61c
lea eax, [ebp - 0x28]
push eax
call fcn.0042de53
int3
Function at 0x4095f0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455a2e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x47110c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov ecx, dword [esi]
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], eax
cmp byte [eax + 0xd], 0
jne 0x409690
mov esi, eax
nop dword [eax]
cmp dword [ebx + 0x14], 0x10
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], esi
mov ecx, ebx
jb 0x409650
mov ecx, dword [ebx]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x40965b
mov eax, dword [eax]
push dword [ebx + 0x10]
push ecx
push edx
push eax
call fcn.00403450
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x40967c
mov esi, dword [esi + 8]
mov dword [ebp - 0x10], 0
jmp 0x409687
mov edi, esi
mov dword [ebp - 0x10], 1
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x409640
mov esi, dword [ebp - 0x18]
cmp byte [edi + 0xd], 0
jne 0x4096e0
cmp dword [edi + 0x24], 0x10
lea eax, [edi + 0x10]
mov edx, dword [eax + 0x10]
jb 0x4096a4
mov eax, dword [eax]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x4096ae
mov ecx, dword [ebx]
push edx
push eax
push dword [ebx + 0x10]
push ecx
call fcn.00403450
shr eax, 0x1f
add esp, 0x10
test al, al
jne 0x4096e0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 4], 0xf83e0f
je 0x4097b2
mov dword [ebp - 0x28], esi
push 0x108
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call fcn.0042ca05
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
lea esi, [edi + 0x10]
mov dword [ebp - 4], 1
push ebx
mov ecx, esi
mov dword [ebp + 0xc], esi
call fcn.004017a0
lea ecx, [esi + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 1
mov word [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0xf
mov byte [ecx + 0xc], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
push 1
add ecx, 0x30
mov byte [ebp - 4], 5
call fcn.004097c0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x10]
mov dword [edi], eax
push dword [ebp - 0x14]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
call fcn.00408d00
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00402690
int3
Function at 0x40b890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x459e6c
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebp - 4]
mov ecx, edx
mov dword [esi], 0
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b8d3
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00402770
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455f53
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x47110c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.srt::multiconsole::window.0
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
movups xmm0, xmmword [ebp + 0x20]
mov dword [esi + 0x10], 0
mov byte [esi + 0x24], 0
movups xmmword [esi + 0x14], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
call fcn.00402090
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x40c34c
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c342
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c360
push edx
push ecx
call fcn.0042ca35
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x28
call fcn.004313f0
int3

Function at 0x4137b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x4137e1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4137d0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8