joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed5e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x14], ebx
je 0x479f01
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042cb65
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x47a030
call fcn.004bcd4c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x479f38
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp + 0x14], esi
mov byte [ebp - 4], 1
jmp 0x479f50
mov dword [ebp - 0x18], 0x514
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x479f7b
push 0x514
lea ecx, [ebp + 0x14]
call fcn.004224ff
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004cbe5b
add esp, 8
test eax, eax
jl 0x47a06b
cmp eax, dword [esi - 8]
jg 0x47a06b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x47a006
cmp dword [ebp + 0x18], ecx
je 0x479ff1
push edi
push ecx
lea edx, [esi - 0x10]
mov dword [ebp - 0x1c], esp
mov edi, esp
push edx
call fcn.00425422
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
add esp, 4
call fcn.0047c530
inc dword [ebp - 0x14]
add esp, 8
inc ebx
jmp 0x479f50
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
call fcn.00424b98
inc dword [ebp - 0x14]
inc ebx
jmp 0x479f50
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47a030
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3
Function at 0x47a080
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9e20
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x53f100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], 1
je 0x47a16f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x47a172
cmp word [eax], 0
je 0x47a172
lea ecx, [ebp - 0x220]
push ecx
push 0x10008
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47a16f
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x220]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push ecx
mov dword [ebp - 0x224], 0x104
call esi
cmp eax, 0x103
je 0x47a154
test eax, eax
jne 0x47a162
push eax
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x218]
push edx
push eax
call fcn.00479750
add esp, 0xc
test eax, eax
je 0x47a101
jmp 0x47a162
mov ecx, dword [ebp - 0x22c]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x21c]
push ecx
push eax
push edi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x47a1dc
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47a1b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a1d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x47a25b
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x228]
push 0
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
mov ecx, dword [ebp - 0x21c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
test esi, esi
sete dl
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a259
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004cb516
mov esp, ebp
pop ebp
ret
Function at 0x47b160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp + 8]
setne cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47b199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x47b1a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47b1be
test al, 0x10
je 0x47b1be
mov esi, 1
jmp 0x47b1c0
xor esi, esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b1df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x47b240
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b250
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push ebx
push eax
call fcn.004cc1d4
lea ecx, [esi + 2]
push 0x5c
push ecx
mov ebx, eax
mov dword [ebp - 4], 0
call fcn.004ccd78
add esp, 0xc
test eax, eax
je 0x47b2d3
push edi
sub eax, esi
sar eax, 1
cmp dword [ebp - 4], 0
mov edi, eax
jle 0x47b2bc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b297
sub eax, edx
push edi
sar eax, 1
push esi
inc eax
push eax
push ebx
call fcn.004ccfd8
add esp, 0x10
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc dword [ebp - 4]
lea edx, [esi + edi*2 + 2]
push 0x5c
push edx
call fcn.004ccd78
add esp, 8
test eax, eax
jne 0x47b286
pop edi
push ebx
call fcn.004cc0f7
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x47bbb0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eacc8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00425422
add esp, 4
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
mov edi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47bc32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
test edi, edi
sete cl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47bc63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47e720
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea0c9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47e771
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, 1
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x200
or eax, ecx
jge 0x47e7b0
push 0x200
mov ecx, esi
call fcn.004224ff
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x47e7d4
push ecx
push eax
call fcn.004cbe5b
add esp, 8
test eax, eax
jl 0x47e7f8
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x47e7f8
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3

Function at 0x47e810
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebc81
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47e85c
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x50107c
mov dword [ebp - 4], 1
test ecx, 0xffff0000
jne 0x47e898
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c4eeb
test eax, eax
je 0x47e8b2
push edi
push eax
mov ecx, esi
call fcn.00424e60
jmp 0x47e8b2
push 0x50107c
call fcn.004cbe7a
add esp, 4
push eax
push 0x50107c
mov ecx, esi
call fcn.004253b1
mov dword [ebp - 4], 0
mov eax, dword [esi]
sub eax, 0x10
mov dword [ebp - 0x14], 0x104
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x47e8ec
push 0x104
mov ecx, esi
call fcn.004224ff
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x47e910
push ecx
push eax
call fcn.004cbe5b
add esp, 8
test eax, eax
jl 0x47e935
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x47e935
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3
Function at 0x47e990
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efa00
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
or ebx, 0xffffffff
test byte [0x545888], 1
jne 0x47ea60
or dword [0x545888], 1
mov dword [ebp - 4], 0
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47e9f4
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x545884], eax
mov ecx, 0x50107c
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x47ea33
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
test eax, eax
je 0x47ea50
push esi
push eax
mov ecx, 0x545884
call fcn.00424e60
jmp 0x47ea50
push 0x50107c
call fcn.004cbe7a
add esp, 4
push eax
push 0x50107c
mov ecx, 0x545884
call fcn.004253b1
push 0x4f7c30
call fcn.004cca3c
add esp, 4
mov dword [ebp - 4], ebx
mov ecx, dword [0x545884]
cmp dword [ecx - 0xc], 0
jne 0x47eb6b
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
sub edx, 0x514
or eax, edx
jge 0x47ea9a
push 0x514
mov ecx, 0x545884
call fcn.004224ff
mov ecx, dword [0x545884]
push 0x514
push ecx
push str._USERPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov eax, dword [0x545884]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004cbe5b
add esp, 8
test eax, eax
jl 0x47eb92
mov ecx, dword [0x545884]
cmp eax, dword [ecx - 8]
jg 0x47eb92
mov dword [ecx - 0xc], eax
mov edx, dword [0x545884]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
jbe 0x47eb1b
mov eax, dword [0x545884]
cmp dword [eax - 0xc], ecx
jle 0x47eb1b
push 0x7e
push eax
call fcn.004ccd78
add esp, 8
test eax, eax
je 0x47eb1b
sub eax, dword [0x545884]
sar eax, 1
cmp eax, ebx
je 0x47eb1b
push 0x545884
call fcn.0047b300
add esp, 4
mov eax, dword [0x545884]
push eax
lea ecx, [ebp - 0x10]
push str.ReplaceUserProfile:_CurProfile_s
push ecx
call fcn.00478610
mov dword [ebp - 4], 2
mov eax, dword [eax]
push eax
push str.DynamicPaths_Initialize
call fcn.004766c0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x47eb65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x545884]
lea eax, [ecx - 0x10]
push eax
call fcn.00425422
mov ecx, eax
mov eax, dword [ebp + 8]
add esp, 4
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3
Function at 0x47eba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea090
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x47ed13
push 0x25
push ecx
call fcn.004ccd78
add esp, 8
cmp eax, ebx
je 0x47ed13
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x47ed13
call fcn.004bcd4c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47ec17
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov ecx, 1
mov byte [ebp - 4], cl
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x47ec4d
push 0x514
lea ecx, [ebp - 0x10]
call fcn.004224ff
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push 0x514
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004cbe5b
add esp, 8
cmp eax, ebx
jl 0x47ed64
cmp eax, dword [esi - 8]
jg 0x47ed64
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp edi, ebx
jbe 0x47ecf4
add esi, 0xfffffff0
push esi
call fcn.00425422
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47ecba
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ece0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ed13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00425422
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ed50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3
Function at 0x47ed70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebc38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.004bcd4c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47edba
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov ecx, 1
mov byte [ebp - 4], cl
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x47ede9
push edi
lea ecx, [ebp - 0x10]
call fcn.004224ff
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004cbe5b
add esp, 8
cmp eax, ebx
jl 0x47ef5b
cmp eax, dword [esi - 8]
jg 0x47ef5b
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp edi, ebx
jne 0x47eef1
call fcn.004bcd4c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47ee40
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov ecx, 0x50107c
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x47ee7d
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c4eeb
cmp eax, ebx
je 0x47ee97
mov ecx, dword [ebp + 8]
push edi
push eax
call fcn.00424e60
jmp 0x47ee97
push 0x50107c
call fcn.004cbe7a
add esp, 4
push eax
push 0x50107c
mov ecx, edi
call fcn.004253b1
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47eeb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47eedc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0xfffffff0
push esi
call fcn.00425422
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ef21
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ef47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3
Function at 0x47f160
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebc00
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47f1a9
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
je 0x47f21a
lea eax, [edx - 0x10]
lea esi, [ecx - 0x10]
cmp eax, esi
je 0x47f273
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x47f20b
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x47f20b
push eax
call fcn.00425422
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x47f203
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x47f273
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0x18]
call fcn.004253b1
jmp 0x47f273
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x47f23a
push esi
lea ecx, [ebp + 8]
call fcn.004224ff
mov edx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edx
call fcn.004cf084
add esp, 8
test esi, esi
jl 0x47f2ef
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 8]
jg 0x47f2ef
mov dword [eax - 0xc], esi
mov edx, dword [ebp + 8]
xor ecx, ecx
lea eax, [ebp + 8]
mov word [edx + esi*2], cx
push eax
lea ecx, [ebp - 0x18]
call fcn.00424eee
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
push edx
push 0x47ef70
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f2b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f2db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3