joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455118
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
movzx eax, byte [ebp + 0x30]
test eax, eax
je 0x45529a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x455222
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x4551d8
mov byte [ebp - 1], 0
push 0x361a
push 0x6b55
lea eax, [ebp - 1]
push eax
push 0x3287
push 1
push 1
push 0x500
push 0
push 0x63aa
push 0x682c
push 0x39fa
push 1
push 0x2589
call fcn.00445ce1
add esp, 0x34
jmp 0x455220
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x4c]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x50]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx]
mov byte [ecx + eax], 0
jmp 0x455298
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x45524d
push 0x122d
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x455298
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x45527b
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x455298
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x78]
call fcn.00432bfb
mov dword [eax], 0xac64a684
jmp 0x455270
jmp 0x4552b9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
push 1
push 0x6031
push 0
push 0x4b87
push dword [ebp - 0x7c]
call fcn.0043d4ce
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x457453
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x4574ee
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x4574b8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0x2088
push 1
push 0x24fd
call fcn.00457683
add esp, 0x18
jmp 0x4574e9
push 0x5fc9
push 0x1f74
push 0x18f
push 1
push 0x400d
push 0x359d
push 0x75d2
push 0x5883
push 0
push 1
call fcn.0043edba
add esp, 0x28
jmp 0x45767f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x457655
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x45764d
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0xfffffff8
mov dword [ebp - 4], 0x377d6446
mov dword [ebp - 0x3c], 0xffffffff
push 1
lea ecx, [ebp - 0x64]
call fcn.00432b0d
push 0x4bce
push 1
push 0
lea eax, [ebp - 0x64]
push eax
push 1
lea eax, [ebp - 0x58]
push eax
push 0xd9c
push 0x320c
push 0x4f00
push 0x6d55
push 1
push 0x4bed
push 0
call fcn.0044ac7b
add esp, 0x34
push 0x7405
push 1
push 0x65ce
push 0xfa4
push 0x6b4
push 0x1e8
push 1
push 0x2a21
push 0x5923
push 0x350b
push 0x70b6
push 0x51b4
push 0x4fb9
push 0x6a2
push 0x4efa
push 0x6d00
push 0x434
push 0x3425
lea eax, [ebp - 4]
push eax
push 0x39cf
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x5d7d
push 0x5df1
push 1
push 0x409c
lea eax, [ebp - 0x38]
push eax
push 1
call fcn.00441c0f
add esp, 0x70
push 1
push 0x5798
push 1
push 1
push 0xba1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2fd7
push 0x5945
call fcn.00447a09
add esp, 0x28
lea ecx, [ebp - 0x64]
call fcn.00432bdf
jmp 0x457653
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x45767f
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push 0
push 0x3749
call fcn.00455c20
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x48b4ad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x49954f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ac484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00489356
mov dword [ebp - 0x14], eax
cmp dword [0xaa6250], esi
jne 0x499642
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4995cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x499722
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x499722
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x499722
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xaa6250], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xaa6254], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xaa6258], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaa6260], eax
test eax, eax
je 0x49963f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaa625c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x499667
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49965a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x49967c
push 4
pop eax
jmp 0x499724
cmp dword [ebp - 0x14], esi
je 0x49967c
push dword [0xaa6250]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x499661
mov eax, dword [0xaa625c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4996da
cmp dword [0xaa6260], edi
je 0x4996da
push eax
call ebx
push dword [0xaa6260]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4996da
test eax, eax
je 0x4996da
call ecx
test eax, eax
je 0x4996cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4996cf
test byte [ebp - 8], 1
jne 0x4996da
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x49970a
mov eax, dword [0xaa6254]
cmp eax, edi
je 0x499707
push eax
call ebx
test eax, eax
je 0x499707
call eax
mov esi, eax
test esi, esi
je 0x499707
mov eax, dword [0xaa6258]
cmp eax, edi
je 0x499707
push eax
call ebx
test eax, eax
je 0x499707
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xaa6250]
call ebx
test eax, eax
je 0x499722
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x499724
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004887fb
mov esp, ebp
pop ebp
ret
Function at 0x101f14d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
clc
clc
jae 0x101f14d6
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x101f14c7
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.101f1282
stc
pop ebp
adc byte [ecx + 0x50a8458d], bh
call fcn.101f1292
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.101f1247
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x101f1570
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.101f1282
cmp esp, dword [eax + 0x458df932]
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x101f1600
Capabilities:
Contain obfuscated stackstrings

Disassembly:
in eax, dx
salc
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
invalid
inc ebp

Function at 0x101f1630
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.101f1247
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
invalid
inc ebp
cwde
Function at 0x101f1940
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
dec dword [ebx + 0x3b660c45]
inc edi
push es
jne 0x101f1959
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x101f1977
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x101f19d5
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x101f19bc
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x101f19c5
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x101f19cf
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x101f19b1
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x101f193b
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x101f1a22
dec eax
je 0x101f1a19
sub eax, 3
je 0x101f1a10
mov dword [ebp - 4], 0x40
jmp 0x101f1a3f
mov dword [ebp - 4], 4
jmp 0x101f1a25
mov dword [ebp - 4], 0x20
jmp 0x101f1a25
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x101f1a71
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x101f19f1
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.101f1282
adc dword [esi + edx*8 - 0x6e], esp
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x101f1a7d
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101f1b50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
add byte [eax], al
add byte [eax - 0x3c35b], al
inc dword [eax]
Function at 0x101f1b70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
add byte [eax - 0x3c35b], al
inc dword [eax]
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.101f1292
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.101f1247
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
invalid
movsd dword es:[edi], dword [esi]
invalid
Function at 0x101f35a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx edx, byte [0x103ca7c4]
test dl, 1
jne 0x101f35c6
test ecx, ecx
je 0x101f35c4
push ecx
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x101f35d1
pop ebp
ret
call fcn.10265c30
pop ebp
jmp fcn.102679a0
int3

Function at 0x101f35e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x101f3630
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x101f361a
call fcn.10221d90
push dword [esi]
call fcn.101ee6e0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x101f3629
mov dword [esi], ebx
call fcn.10221d90
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x101f3647
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3

Function at 0x101f3650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jb 0x101f3671
call fcn.10221d90
mov dword [esi], 0
test edi, edi
je 0x101f3695
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x101f36cc
cmp ebx, 2
jae 0x101f36ec
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
mov byte [edi + 4], 0
mov eax, dword [edi]
inc eax
cmp eax, 2
jb 0x101f36c0
call fcn.10221d90
push dword [edi]
call fcn.101ee6e0
add esp, 4
mov dword [edi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.10221d90
push dword [esi]
call fcn.101ee6e0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x101f368e
mov dword [esi], edi
mov edi, eax
call fcn.10221d90
mov eax, edi
jmp 0x101f368e
Function at 0x40289a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov byte [ebp - 0x314], 0
mov dword [ebp - 0x310], 0
jmp 0x4028c5
mov eax, dword [ebp - 0x310]
add eax, 1
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp - 0x310]
cmp ecx, dword [0x420aa4]
jae 0x402900
mov edx, dword [ebp - 0x310]
mov eax, dword [0x420aa8]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x10]
jne 0x4028fe
mov eax, dword [ebp - 0x310]
mov ecx, dword [0x420aa8]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x31c], edx
jmp 0x4028b6
mov eax, dword [ebp - 0x31c]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
jne 0x4029e4
mov edx, dword [ebp - 0x31c]
add edx, 0x210
push edx
push str._s_ntuser.dat
lea eax, [ebp - 0x208]
push eax
call fcn.0040dddb
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x30c]
push eax
mov ecx, dword [ebp - 0x31c]
add ecx, 8
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
jne 0x4029a7
lea edx, [ebp - 0x318]
push edx
push 0x2001f
push 0
mov eax, dword [ebp - 0x31c]
add eax, 8
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4029a5
mov byte [ebp - 0x314], 1
jmp 0x4029e2
mov ecx, dword [ebp - 0x31c]
add ecx, 0x10c
push ecx
push 0x41b2f8
lea edx, [ebp - 0x208]
push edx
call fcn.0040dddb
add esp, 0xc
mov eax, dword [ebp - 0x320]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402835
add esp, 0xc
jmp 0x4029f5
mov dword [ebp - 0x318], VariantCopy
mov byte [ebp - 0x314], 1
mov eax, dword [ebp - 0x314]
and eax, 0xff
test eax, eax
je 0x402acd
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
mov ecx, dword [ebp - 0x31c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
jne 0x402a68
mov eax, dword [0x41b0bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
add ecx, 8
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
mov edx, dword [ebp - 0x31c]
mov dword [0x420aac], edx
mov eax, dword [ebp - 0x318]
mov dword [0x41b0bc], eax
cmp dword [ebp + 8], 0
je 0x402acd
mov ecx, dword [ebp - 0x31c]
add ecx, 0x10c
push ecx
push 0x41b318
lea edx, [ebp - 0x104]
push edx
call fcn.0040dddb
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push 0x3ec
push 0x111
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [ebp - 0x314]
mov esp, ebp
pop ebp
ret
Function at 0x402bdc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlProductOptions
mov ecx, dword [reloc.OLEAUT32.dll_SysReAllocString]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x402c30
jmp 0x402d13
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x41b37c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402c5a
cmp dword [ebp - 0xc], 0
jne 0x402c5f
jmp 0x402d11
mov edx, dword [ebp - 0xc]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x402c79
jmp 0x402d0f
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.ProductSuite
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402ca5
cmp dword [ebp - 4], 7
je 0x402ca7
jmp 0x402d0d
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
test eax, eax
je 0x402ce8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402cd2
mov dword [ebp - 0x10], 1
jmp 0x402ce8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
mov dword [ebp - 8], edx
jmp 0x402cad
cmp dword [ebp - 0x1c], 0
je 0x402cf8
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], 0
je 0x402d08
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x402d15
jmp 0x402ce8
jmp 0x402ce8
jmp 0x402ce8
jmp 0x402ce8
mov esp, ebp
pop ebp
ret
Function at 0x4038ca
Capabilities:
Get file system object information
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040db27
add esp, 4
mov dword [ebp - 0x170], eax
mov edx, dword [ebp - 0x170]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403971
push str.FileDescription
mov edx, dword [ebp - 0x170]
push edx
call fcn.00403837
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403946
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.CompanyName
mov edx, dword [ebp - 0x170]
push edx
call fcn.00403837
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403971
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x16c], 0
push 0x101
push 0x160
lea edx, [ebp - 0x16c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp dword [ebp - 0x16c], 0
jne 0x4039b4
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x170]
push ecx
call fcn.0040da3e
add esp, 4
mov eax, dword [ebp - 0x16c]
mov esp, ebp
pop ebp
ret