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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b37e8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4e0240]
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
mov ebx, dword [ebp + 8]
push 1
push ebx
lea ecx, [ebp - 0x48]
call fcn.00490350
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00490040
test eax, eax
je 0x490834
push 0
lea ecx, [ebp - 0x48]
call fcn.00490080
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x490834
mov eax, dword [0x4e0004]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e0004
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x14]
push str.TaskKill__pid__d__f
push eax
mov byte [ebp - 4], 1
call fcn.00401a85
mov edi, dword [ebp - 0x14]
add esp, 0xc
test edi, edi
jne 0x49079f
xor eax, eax
jmp 0x4907c8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4907b2
xor eax, eax
jmp 0x4907c8
lea esi, [eax + eax]
mov eax, esi
call fcn.00470aa0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004337d0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 1
push ebx
lea ecx, [ebp - 0x7c]
call fcn.00490350
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00490040
test eax, eax
je 0x490800
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c2408
call fcn.00411d70
add esp, 8
lea ecx, [ebp - 0x7c]
call fcn.004904b0
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490828
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x48]
call fcn.004904b0
xor eax, eax
jmp 0x490841
lea ecx, [ebp - 0x48]
call fcn.004904b0
mov eax, 1
lea esp, [ebp - 0x8c]
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.0046e452
mov esp, ebp
pop ebp
ret
Function at 0x498080
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4058
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4e0240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00497740
test eax, eax
je 0x4980ef
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00497e10
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 0
jne 0x498111
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4980ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 0x58]
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00497ed0
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov esi, dword [esi + 0x58]
push 0
push eax
push edx
push 3
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498178
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 esp, ebp
pop ebp
ret
Function at 0x498610
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4110
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4e0240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e700
mov ebx, dword [edi + 0x14]
lea ecx, [ebp - 0x20]
call fcn.0040e730
xor esi, esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x498678
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 4
push eax
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x14]
push ecx
push esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.0047184d
mov esi, eax
add esp, 0x18
test esi, esi
je 0x498662
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
mov ecx, edi
call fcn.00498580
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp + 0x18]
push ecx
push 0
lea edx, [ebp - 0x18]
push edx
push 2
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4986e8
xor ebx, ebx
jmp 0x49875d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e700
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x25], 0
mov byte [ebp - 4], 1
jne 0x498724
mov edi, edi
cmp dword [eax + 0xc], esi
jae 0x49871a
mov eax, dword [eax + 8]
jmp 0x49871e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0x25], 0
je 0x498710
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], ecx
cmp ecx, eax
je 0x498738
cmp esi, dword [ecx + 0xc]
jb 0x498738
lea eax, [ebp + 0xc]
jmp 0x49873e
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [edi + 8]
je 0x498751
mov ecx, dword [ebp + 0x10]
add eax, 0x14
push eax
call fcn.00414a40
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040e730
mov eax, dword [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00498190
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x498990
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4178
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e0240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0xa0400000
push ebx
push 0x4b67c8
push str.HTTP_1.1
push eax
push str.HEAD
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp + 0xc], esi
cmp esi, ebx
je 0x498a53
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push 0xea60
push 0x497a10
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 0xc]
push eax
push edi
lea ecx, [edi + 0x10]
mov dword [ebp - 4], ebx
call fcn.00498610
test eax, eax
je 0x498a43
push ebx
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0x20000013
push esi
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp + 0xc], 0xc8
je 0x498a69
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x498a53
push eax
call fcn.0046d5e2
add esp, 4
xor eax, eax
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
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x498a79
push eax
call fcn.0046d5e2
add esp, 4
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 8
Function at 0x499330
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4e0240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0046e590
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x44], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
shr edx, 0x14
mov dword [esi], edx
xor ecx, ebp
pop esi
call fcn.0046e452
mov esp, ebp
pop ebp
ret
Function at 0x499fb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b44a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4e0240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov edi, ecx
cmp dword [0x4e3234], eax
je 0x49a10b
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
xor edx, edx
push ecx
mov dword [ebp - 0x60], 0x36007b
mov dword [ebp - 0x5c], 0x410039
mov dword [ebp - 0x58], 0x320037
mov dword [ebp - 0x54], 0x380041
mov dword [ebp - 0x50], 0x2d0041
mov dword [ebp - 0x4c], 0x340038
mov dword [ebp - 0x48], 0x440045
mov dword [ebp - 0x44], 0x34002d
mov dword [ebp - 0x40], 0x370061
mov dword [ebp - 0x3c], 0x2d0035
mov dword [ebp - 0x38], 0x430038
mov dword [ebp - 0x34], 0x370045
mov dword [ebp - 0x30], 0x32002d
mov dword [ebp - 0x2c], 0x330036
mov dword [ebp - 0x28], 0x420044
mov dword [ebp - 0x24], 0x460045
mov dword [ebp - 0x20], 0x450033
mov dword [ebp - 0x1c], 0x440035
mov dword [ebp - 0x18], 0x7d0033
mov word [ebp - 0x14], dx
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [ebp - 0x74], 0
mov ecx, dword [0x4e3234]
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 4], 0
call fcn.00499ce0
test eax, eax
mov eax, dword [ebp - 0x74]
je 0x49a0f6
test eax, eax
je 0x49a0f8
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
add edi, 8
push edi
push 0x4be540
push 0
push eax
call edx
test eax, eax
js 0x49a0f3
cmp dword [edi], 0
je 0x49a0f3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x49a0ec
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
jmp 0x49a10b
mov eax, dword [ebp - 0x74]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x49a109
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e452
mov esp, ebp
pop ebp
ret
Function at 0x49a200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b44f8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4e0240]
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
mov ebx, dword [ebp + 8]
mov edi, ecx
call fcn.00499d20
xor eax, eax
cmp dword [0x4e3234], eax
je 0x49a27d
mov esi, dword [0x4e3238]
mov dword [0x4e3234], eax
mov dword [0x4e3238], eax
cmp esi, eax
je 0x49a27d
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49a27d
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49a27d
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 8
call fcn.0046dfee
add esp, 4
test eax, eax
je 0x49a297
push ebx
mov ecx, eax
call fcn.00499c60
mov esi, eax
jmp 0x49a299
xor esi, esi
push esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x68], esi
call fcn.0049a130
push esi
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00416260
add esp, 0xc
mov esi, dword [ebp - 0x64]
mov ebx, dword [0x4e3238]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 4], 0
mov dword [0x4e3234], ecx
cmp esi, ebx
je 0x49a31a
test esi, esi
je 0x49a2e6
lea edx, [esi + 4]
mov eax, 1
lock xadd dword [edx], eax
mov ebx, dword [0x4e3238]
test ebx, ebx
je 0x49a314
lea ecx, [ebx + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49a314
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49a314
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov dword [0x4e3238], esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49a34f
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49a34f
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49a34f
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor eax, eax
push eax
lea esi, [edi + 4]
push esi
lea ecx, [ebp - 0x60]
push ecx
mov ecx, edi
mov dword [ebp - 0x60], 0x45007b
mov dword [ebp - 0x5c], 0x350041
mov dword [ebp - 0x58], 0x320038
mov dword [ebp - 0x54], 0x340037
mov dword [ebp - 0x50], 0x2d0033
mov dword [ebp - 0x4c], 0x300039
mov dword [ebp - 0x48], 0x360037
mov dword [ebp - 0x44], 0x34002d
mov dword [ebp - 0x40], 0x370031
mov dword [ebp - 0x3c], 0x2d0038
mov dword [ebp - 0x38], 0x410039
mov dword [ebp - 0x34], 0x360041
mov dword [ebp - 0x30], 0x37002d
mov dword [ebp - 0x2c], 0x390033
mov dword [ebp - 0x28], 0x460033
mov dword [ebp - 0x24], 0x460044
mov dword [ebp - 0x20], 0x440034
mov dword [ebp - 0x1c], 0x430035
mov dword [ebp - 0x18], 0x7d0045
mov word [ebp - 0x14], ax
call fcn.00499eb0
test eax, eax
je 0x49a3fa
cmp dword [esi], 0
je 0x49a3fa
mov ecx, edi
call fcn.00499fb0
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.0046e452
mov esp, ebp
pop ebp
ret 4
Function at 0x49a4b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4568
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4e0240]
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
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x2c], 0x7551744e
mov dword [ebp - 0x28], 0x53797265
mov dword [ebp - 0x24], 0x65747379
mov dword [ebp - 0x20], 0x666e496d
mov dword [ebp - 0x1c], 0x616d726f
mov dword [ebp - 0x18], 0x6e6f6974
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x40], 0x74004e
mov dword [ebp - 0x3c], 0x6c0064
mov dword [ebp - 0x38], 0x2e006c
mov dword [ebp - 0x34], 0x6c0064
mov dword [ebp - 0x30], 0x6c
mov dword [ebp - 0x48], vtable.CLibLoader.0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x49a569
lea edx, [ebp - 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x49a56d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x49a584
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push ecx
push edi
push edx
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
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.0046e452
mov esp, ebp
pop ebp
ret

Function at 0x49e180
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4a2b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e0240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0046d24d
push 4
mov dword [ebp - 4], 0
call fcn.0046dfee
mov edi, eax
add esp, 4
test edi, edi
je 0x49e200
call fcn.0046cf84
mov dword [edi], eax
call fcn.0046cd43
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0046cc78
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x49e1f6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0046cca0
jmp 0x49e202
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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
Function at 0x401443
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f7350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ecx, ecx
xor esi, esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0x24
mov dword [ebp - 0xc], 0x26
mov dword [ebp - 8], 0x2a
cmp dword [0x602648], ecx
jne 0x4014e4
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push 3
push 1
push 3
push 2
push ecx
push ecx
call edi
push edx
push eax
call edi
push edx
push eax
call edi
push edx
push eax
push 0x23
xor ecx, ecx
push 0x602648
mov dword [0x602648], 0x11c
mov dword [0x60264c], 6
mov dword [0x602650], 1
mov word [0x60275c], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
inc eax
mov dword [0x5f8adc], eax
xor ecx, ecx
jmp 0x4014e9
mov eax, dword [0x5f8adc]
cmp eax, ecx
je 0x4014f5
xor eax, eax
inc eax
jmp 0x40161f
cmp dword [ebp - 0x14], ecx
je 0x40160f
push ecx
push ecx
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x40160f
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40160f
push 0
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x40160f
and dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x10]
cmp eax, 0x26
jne 0x4015c2
push 0
push 0
push 0x584abc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x40160f
lea eax, [edi + edi + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40160f
push edi
push esi
push 0x584abc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x40160f
push esi
push 0x584abc
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4015ab
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x26
jmp 0x4015c3
cmp word [esi + edi*2 - 4], 0x5c
je 0x4015cf
push 0x584ab8
inc edi
mov ebx, esi
call section..text
jmp 0x4015cf
push eax
call fcn.004012a6
mov esi, eax
pop ecx
test esi, esi
je 0x40160f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4015d4
sub eax, edx
sar eax, 1
push eax
push esi
push dword [ebp - 0x18]
call fcn.0051499a
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jne 0x40160f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x401543
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x18]
call esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005146df
leave
ret
Function at 0x40a5c9
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push 0x59c
mov eax, 0x5701dd
call fcn.00523a34
xor eax, eax
push 0x206
mov word [ebp - 0x430], ax
xor ebx, ebx
lea eax, [ebp - 0x42e]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x470], edi
call fcn.00517bf0
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40a6df
lea eax, [ebp - 0x430]
push eax
lea esi, [ebp - 0x44c]
mov dword [ebp - 4], ebx
call fcn.00403350
mov edx, esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00408629
push 1
xor edi, edi
call fcn.0040412d
or dword [ebp - 4], 0xffffffff
jmp 0x40a750
lea eax, [ebp - 0x510]
push eax
call fcn.00403689
mov esi, eax
push str.Cannot_get_CSIDL_PROGRAM_FILES_path.
push esi
mov dword [ebp - 4], 5
call fcn.00405d65
pop ecx
pop ecx
lea eax, [ebp - 0x44c]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 6
cmp dword [ebp - 0x438], 8
mov eax, dword [ebp - 0x44c]
jae 0x40a728
lea eax, [ebp - 0x44c]
push eax
push 2
pop ecx
call fcn.00492cc7
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x44c]
call fcn.0040412d
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x510]
call fcn.0040262a
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x46c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x40a774
mov dword [ebp - 0x46c], ebx
cmp dword [ebp - 0x46c], 1
jne 0x40a7e9
xor eax, eax
push 0x208
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x226]
push ebx
push eax
call fcn.00517bf0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x228]
push eax
push 0x584abc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40a7e9
lea eax, [ebp - 0x228]
push eax
lea esi, [ebp - 0x44c]
mov dword [ebp - 4], 7
call fcn.00403350
mov ecx, dword [ebp - 0x470]
mov edx, esi
mov byte [ebp - 4], 8
call fcn.00408629
push 1
xor edi, edi
call fcn.0040412d
call fcn.00523a90
ret