joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470790
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4c8350
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x64]
xor ebx, ebx
test byte [0x50d190], 1
mov dword [esp + 0x14], ebx
lea edi, [ebx + 7]
jne 0x470800
or dword [0x50d190], 1
xor eax, eax
push 0x4cc080
mov dword [0x50d18c], edi
mov dword [0x50d188], ebx
mov word [0x50d178], ax
call fcn.00490ecf
add esp, 4
cmp byte [0x50d170], bl
jne 0x47092b
lea ecx, [esp + 0x34]
push ecx
mov byte [0x50d170], 1
call fcn.00470640
add esp, 4
mov dword [esp + 0x5c], ebx
mov ebp, 8
cmp dword [esp + 0x48], ebx
je 0x470901
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0042a0f0
add esp, 8
mov byte [esp + 0x5c], 1
cmp dword [esp + 0x2c], ebx
je 0x4708df
lea ecx, [esp + 0x18]
push ecx
call fcn.00429f60
add esp, 4
test al, al
je 0x4708b4
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x470873
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x47088c
push str..exe
lea ecx, [esp + 0x1c]
call fcn.004028be
lea edx, [esp + 0x18]
push edx
push 1
sub esp, 0x1c
mov eax, esp
xor ecx, ecx
mov dword [eax + 0x18], edi
mov dword [eax + 0x14], ebx
mov dword [esp + 0x38], esp
mov word [eax + 4], cx
call fcn.0042a250
add esp, 0x24
cmp al, bl
je 0x4708df
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x4708c2
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4708df
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x20]
push edx
mov ecx, 0x50d174
call fcn.00401c43
cmp dword [esp + 0x30], ebp
jb 0x4708f2
mov eax, dword [esp + 0x1c]
push eax
call fcn.0048e006
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x4c], ebp
jb 0x47091c
mov edx, dword [esp + 0x38]
push edx
call fcn.0048e006
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], ax
push 0xffffffffffffffff
xor ecx, ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push ebx
mov word [esi + 4], cx
push 0x50d174
mov ecx, esi
call fcn.00401c43
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0048e25d
add esp, 0x4c
ret
Function at 0x470970
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4c9f98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
xor ebx, ebx
test byte [0x50d1b4], 1
mov dword [esp + 0xc], ebx
jne 0x4709df
or dword [0x50d1b4], 1
xor eax, eax
push 0x4cc0c0
mov dword [0x50d1b0], 7
mov dword [0x50d1ac], ebx
mov word [0x50d19c], ax
call fcn.00490ecf
add esp, 4
cmp byte [0x50d194], bl
jne 0x470a6c
push ebx
push str.WerFault.exe
lea ecx, [esp + 0x18]
push 0x29
push ecx
mov byte [0x50d194], 1
call fcn.004703a0
add esp, 0x10
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x24], ebx
je 0x470a3d
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x470a20
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470a3d
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, 0x50d198
call fcn.00401c43
cmp dword [esp + 0x28], 8
mov dword [esp + 0x38], 0xffffffff
jb 0x470a59
mov eax, dword [esp + 0x14]
push eax
call fcn.0048e006
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x50d198
mov ecx, esi
mov word [esi + 4], dx
call fcn.00401c43
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0048e25d
add esp, 0x30
ret
Function at 0x470ab0
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4c9f98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
xor ebx, ebx
test byte [0x50d1d8], 1
mov dword [esp + 0xc], ebx
jne 0x470b1f
or dword [0x50d1d8], 1
xor eax, eax
push 0x4cc100
mov dword [0x50d1d4], 7
mov dword [0x50d1d0], ebx
mov word [0x50d1c0], ax
call fcn.00490ecf
add esp, 4
cmp byte [0x50d1b8], bl
jne 0x470bac
push ebx
push str.DWwin.exe
lea ecx, [esp + 0x18]
push 0x25
push ecx
call fcn.004703a0
add esp, 0x10
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x24], ebx
je 0x470b76
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x470b59
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470b76
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, 0x50d1bc
call fcn.00401c43
cmp dword [esp + 0x28], 8
mov byte [0x50d1b8], 1
mov dword [esp + 0x38], 0xffffffff
jb 0x470b99
mov eax, dword [esp + 0x14]
push eax
call fcn.0048e006
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x50d1bc
mov ecx, esi
mov word [esi + 4], dx
call fcn.00401c43
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0048e25d
add esp, 0x30
ret

Function at 0x471760
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
lea eax, [esp + 8]
push eax
push 0x105
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4717d7
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x4717d7
cmp byte [esp + 0x220], 0
je 0x4717c9
push 0x4e8e18
push 0x105
lea edx, [esp + 0x10]
push edx
call fcn.00403c73
test eax, eax
jl 0x4717d7
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00401f35
jmp 0x4717f8
xor ecx, ecx
push ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], cx
push 0x4cdc24
mov ecx, esi
call fcn.00401cd6
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0048e25d
add esp, 0x214
ret 8
Function at 0x471820
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4c8acb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, dword [esp + 0x250]
cmp dword [esi + 0x14], 0
mov ebp, ecx
jne 0x471871
mov al, 1
jmp 0x47199b
xor bl, bl
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x471880
mov eax, dword [edi]
jmp 0x471882
mov eax, edi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4718a1
cmp eax, 0x50
je 0x4718a1
cmp eax, 0xb7
jne 0x471999
cmp dword [esi + 0x18], 8
jb 0x4718ab
mov esi, dword [edi]
jmp 0x4718ad
mov esi, edi
lea eax, [esp + 0x30]
mov ecx, eax
xor edi, edi
mov edx, 0x105
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffef9]
test ecx, ecx
je 0x4718e0
movzx ecx, word [esi + eax]
test cx, cx
je 0x4718e0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4718c0
jmp 0x4718e4
test edx, edx
jne 0x4718ec
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
jl 0x471999
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x471999
push 0x4e8e18
push 0x105
lea ecx, [esp + 0x38]
push ecx
call fcn.00403c73
test eax, eax
jl 0x471999
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call fcn.00401f35
push 0
push 0x4d24f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x250], 0
call fcn.0040745d
test eax, eax
jne 0x47196d
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.004017cd
push 0x4e9530
push 0
lea ecx, [esp + 0x1c]
call fcn.0042e850
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x47197c
lea eax, [esp + 0x18]
mov ecx, dword [ebp]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push 0
push 0
call eax
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.0040198e
mov al, bl
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0048e25d
add esp, 0x238
ret 4
Function at 0x4740a0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c9016
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov eax, dword [0x50bcf8]
mov al, byte [eax + 0x31]
mov edi, ecx
mov ecx, str.SoftwarePoliciesAdobeAcrobat_Reader10.0FeatureLockDown
test al, al
je 0x4740f1
mov ecx, str.SoftwarePoliciesAdobeAdobe_Acrobat10.0FeatureLockDown
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x474301
mov eax, dword [esp + 0xc]
test eax, eax
je 0x474301
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
push 0
push str.bUseWhitelistConfigFile
mov esi, 4
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4742f6
cmp dword [esp + 0x10], esi
jne 0x4742f6
cmp dword [esp + 0x14], eax
je 0x4742f6
push str.ReaderProtectedModeWhitelistConfig.txt
lea ecx, [esp + 0xc8]
call fcn.00401f35
mov edx, dword [0x50bcf8]
cmp byte [edx + 0x31], 0
mov dword [esp + 0xec], 0
je 0x4741ac
push str.AcrobatProtectedModeWhitelistConfig.txt
lea ecx, [esp + 0xc8]
call fcn.004028b9
mov eax, dword [esp + 0xc8]
mov esi, 8
cmp dword [esp + 0xdc], esi
jae 0x4741c8
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.004704a0
add esp, 8
mov eax, dword [esp + 0xac]
mov byte [esp + 0xec], 1
cmp dword [esp + 0xc0], esi
jae 0x4741f8
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
lea ecx, [esp + 0x20]
test eax, eax
je 0x474284
push 0x69c
push str..policy_configurator.cpp
call fcn.004440f0
mov ecx, dword [esp + 0xac]
mov byte [esp + 0xec], 2
cmp dword [esp + 0xc0], esi
jae 0x474237
lea ecx, [esp + 0xac]
push ecx
add eax, 4
push str.Found_custom_policy_file:
push eax
call fcn.0040afde
add esp, 8
push eax
call fcn.004438b0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 1
call fcn.00443d90
mov eax, dword [esp + 0xac]
cmp dword [esp + 0xc0], esi
jae 0x47427a
lea eax, [esp + 0xac]
push eax
mov ecx, edi
call fcn.00473ff0
jmp 0x4742de
push 0x6a1
push str..policy_configurator.cpp
call fcn.004440f0
mov ecx, dword [esp + 0xac]
mov byte [esp + 0xec], 3
cmp dword [esp + 0xc0], esi
jae 0x4742b2
lea ecx, [esp + 0xac]
push ecx
add eax, 4
push str.Custom_policy_file_NOT_found:
push eax
call fcn.0040afde
add esp, 8
push eax
call fcn.004438b0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 1
call fcn.00443d90
lea ecx, [esp + 0xa8]
call fcn.0040198e
lea ecx, [esp + 0xc4]
call fcn.0040198e
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0048e25d
add esp, 0xe4
ret
Function at 0x474e40
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
push esi
test eax, eax
je 0x474eb5
mov esi, dword [esp + 0x18]
test esi, esi
je 0x474eb5
mov edx, dword [esp + 0x10]
push ebx
mov bl, byte [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x474ead
mov edx, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push esi
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474ea2
cmp dword [esp + 0xc], eax
setne bl
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 8
ret
mov al, byte [esp + 0x1c]
pop esi
add esp, 8
ret

Function at 0x474ec0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor bl, bl
push esi
test eax, eax
je 0x474f32
mov esi, dword [esp + 0x18]
test esi, esi
je 0x474f32
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x474f2c
cmp byte [esp + 0x1c], al
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
setne al
push 0
push esi
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x474f21
mov bl, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
pop ecx
ret
pop esi
xor al, al
pop ebx
pop ecx
ret

Function at 0x474f40
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x474fa6
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x474fa5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x474fa4
push esi
mov esi, dword [esp + 0x20]
test esi, esi
jbe 0x474fa3
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x474fa3
push esi
push edi
push 1
push eax
mov eax, dword [esp + 0x24]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
ret
Function at 0x4755f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c9188
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x4c]
push 0x2d
xor eax, eax
xor ebp, ebp
push str.SoftwareAdobeAcrobat_Reader10.0Privileged
lea ecx, [esp + 0x24]
mov byte [esp + 0x1f], 0
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
call fcn.00401cd6
mov ecx, dword [0x50bcf8]
cmp byte [ecx + 0x31], 0
mov dword [esp + 0x44], ebp
je 0x475670
push 0x2c
push str.SoftwareAdobeAdobe_Acrobat10.0Privileged
lea ecx, [esp + 0x24]
call fcn.00401cd6
push 1
push 0x4cfe30
lea ecx, [esp + 0x24]
call fcn.004027ed
push 0xb
push str.Attachments
lea ecx, [esp + 0x24]
call fcn.004027ed
push 1
push 0x4cfe30
lea ecx, [esp + 0x24]
call fcn.004027ed
push 0x1a
push str.cUserLaunchAttachmentPerms
lea ecx, [esp + 0x24]
call fcn.004027ed
push 1
push 0x4cfe30
lea ecx, [esp + 0x24]
call fcn.004027ed
push 0x19
push str.cAttachmentTypeToPermList
lea ecx, [esp + 0x24]
call fcn.004027ed
push 2
push 0x4f15f4
lea ecx, [esp + 0x24]
call fcn.004027ed
lea edx, [ebx + 2]
mov eax, edx
lea esi, [eax + 2]
jmp 0x4756f0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4756f0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.004027ed
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x475719
lea eax, [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4757ab
cmp ebx, ebp
je 0x475742
push 0x100
push ebx
call fcn.00490ee6
add esp, 8
mov ebp, eax
lea esi, [ebp + 1]
push esi
call fcn.0048d83c
push esi
mov edi, eax
push 0
push edi
call fcn.0048e760
push ebp
push ebx
push esi
push edi
push 0
call fcn.004958af
mov eax, dword [esp + 0x3c]
add esp, 0x24
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 3
push 0
push str.sExtension
push eax
call esi
test eax, eax
jne 0x47579c
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x54]
push ecx
push 4
push eax
push 0x4f15d0
push edx
call esi
mov bl, 1
test eax, eax
je 0x4757a0
mov bl, byte [esp + 0x17]
push edi
call fcn.0048e006
add esp, 4
jmp 0x4757af
mov bl, byte [esp + 0x17]
cmp dword [esp + 0x34], 8
jb 0x4757c3
mov eax, dword [esp + 0x20]
push eax
call fcn.0048e006
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0048e25d
add esp, 0x34
ret 8
Function at 0x476070
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4c92c3
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28c]
xor edi, edi
mov dword [esp + 0x10], edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x18], esi
mov word [esi + 4], ax
push 0x104
lea ecx, [esp + 0x74]
push ecx
mov ebx, 1
push str._APPDATA_
mov dword [esp + 0x290], edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4761e1
xor edx, edx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], edi
mov word [esp + 0x58], dx
lea eax, [esp + 0x70]
mov dword [esp + 0x284], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x476120
sub eax, edx
sar eax, 1
je 0x4761e1
push ebx
push 0x4cfe30
lea ecx, [esp + 0x5c]
call fcn.004027ed
push 0x40
push str.chc.4875E02D9FB21EE389F73B8D1702B320485DF8CE.1Local_StoreHelp_
lea ecx, [esp + 0x5c]
call fcn.004027ed
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x3c]
call fcn.00401f35
lea ecx, [esp + 0x54]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x290], 2
call fcn.00438360
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
mov ecx, esi
mov byte [esp + 0x290], 3
call fcn.00401c43
mov ebx, 8
cmp dword [esp + 0x34], ebx
jb 0x4761a8
mov eax, dword [esp + 0x20]
push eax
call fcn.0048e006
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
cmp dword [esp + 0x50], ebx
jb 0x4761ce
mov edx, dword [esp + 0x3c]
push edx
call fcn.0048e006
add esp, 4
cmp dword [esp + 0x6c], ebx
jb 0x4761e1
mov eax, dword [esp + 0x58]
push eax
call fcn.0048e006
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0048e25d
add esp, 0x278
ret
Function at 0x478090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c9616
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x20]
xor ebp, ebp
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebp
lea edi, [esi + 0x30]
mov dword [esp + 0x24], ebp
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
mov ebx, 1
mov byte [esp + 0x24], bl
test eax, 0xffffffe0
je 0x478103
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
push eax
push edx
lea edx, [esp + 0x20]
push edx
call fcn.00477b70
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
test eax, 0xffffffe0
je 0x478124
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.00477b70
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x47b790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x134
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x130], eax
movzx eax, word [esp + 0x138]
push ebp
push esi
mov esi, dword [0x50e074]
push edi
push 0xf0
push eax
mov edi, 1
push esi
mov ebp, ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47b91c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47b91c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x47b91c
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x47b804
mov edi, dword [esp + 0x10]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x47b918
add esi, 2
mov edx, dword [esi + 2]
movzx edi, ax
movzx eax, word [esi]
add esi, 2
mov ecx, 0x403
add esi, 4
mov dword [esp + 0x14], edx
cmp cx, ax
jne 0x47b880
push 3
lea edx, [esp + 0x44]
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], edx
call fcn.0047aab0
mov eax, dword [esp + 0x3c]
mov edx, dword [ebp + 4]
push eax
push 0
movzx ecx, di
push 0x143
push ecx
push edx
call ebx
cmp eax, 0xffffffff
jne 0x47b869
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x47b8ea
push eax
call fcn.0049042c
add esp, 4
jmp 0x47b8ea
mov edx, 0x1234
cmp dx, ax
jne 0x47b8ea
push 3
lea eax, [esp + 0x44]
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x44], eax
call fcn.0047aab0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], eax
cmp eax, ecx
je 0x47b8c7
push eax
call fcn.0049042c
add esp, 4
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x18]
push edx
push 0
movzx eax, di
push 0x40b
push eax
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x47b8ea
mov dword [esp + 0x10], 0
add esi, dword [esp + 0x14]
cmp dword [esp + 0x10], 0
jne 0x47b800
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0048e25d
add esp, 0x134
ret 4
mov eax, edi
jmp 0x47b8fd
mov eax, edi
jmp 0x47b8fe