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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4c72ac]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0046a630
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call fcn.00404158
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0046acd7
leave
ret

Function at 0x43696b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x4c72ac]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x48f09b
call fcn.0046ace6
mov eax, dword [ebp + 0x328]
and dword [ebp - 4], 0
mov edi, dword [ebp + 0x324]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], edi
call fcn.0043692d
mov esi, 0x105
push esi
xor ebx, ebx
lea eax, [ebp + 0x108]
push 0
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0046a630
add esp, 0x10
push esi
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp]
push 0
push eax
call fcn.0046a630
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0x210]
push 0
push eax
call fcn.0046a630
add esp, 0xc
lea eax, [ebp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00404158
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.00407e2a
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.00407e2a
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.00407e2a
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.00407e2a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401240
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 + 0x318]
xor ecx, ebp
call fcn.0046acd7
add ebp, 0x31c
leave
ret

Function at 0x436b9e
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x48f11e
call fcn.0046ace6
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403711
push 2
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.OhEeFSxIHS0
mov byte [ebp - 4], 1
call fcn.004023cb
lea eax, [ebp - 0x14]
push eax
call fcn.00403d46
add esp, 0x28
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.004038c9
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401240
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00403711
call fcn.00436a99
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401240
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401240
call fcn.0046adbe
ret
Function at 0x43bdf8
Capabilities:
Resume thread

Disassembly:
push 4
mov eax, 0x48fecf
call fcn.0046ace6
mov edi, ecx
push 0x24
mov dword [ebp - 4], 2
call fcn.0044680e
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x43be26
mov ecx, eax
call fcn.00437a93
mov esi, eax
jmp 0x43be28
xor esi, esi
lea eax, [ebp + 0xc]
lea ecx, [esi + 0xc]
push eax
call fcn.004039c9
lea eax, [ebp + 0x10]
lea ecx, [esi + 0x10]
push eax
call fcn.004039c9
mov eax, dword [edi + 0x12c]
mov dword [esi + 4], eax
lea eax, [ebp + 8]
lea ecx, [esi + 8]
push eax
call fcn.004039c9
mov eax, dword [edi + 0x20]
push ebx
push 4
push ebx
push ebx
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
push esi
push 0x43ba11
mov byte [esi + 0x18], bl
mov byte [esi + 0x19], bl
mov dword [esi + 0x14], eax
call fcn.0044aa5e
lea ecx, [edi + 0x14c]
mov dword [ecx], eax
cmp eax, ebx
je 0x43be95
mov dword [eax + 0x28], ebx
mov eax, dword [ecx]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x43bf25
push 3
pop ebx
push ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.KSpBDjA9SRY6EygBNjwrPA
call fcn.004023cb
lea eax, [ebp - 0x10]
push eax
call fcn.00403d46
add esp, 0x28
mov esi, dword [ebp + 0x14]
imul esi, esi, 0x44
lea ecx, [esi + 0x4c8b78]
push eax
mov byte [ebp - 4], bl
call fcn.004039c9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401240
push ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.Nw44QTY9SRY6EygBNjwrPA
call fcn.004023cb
lea eax, [ebp + 0x14]
push eax
call fcn.00403d46
add esp, 0x28
push eax
lea ecx, [esi + 0x4c8b7c]
mov byte [ebp - 4], 4
call fcn.004039c9
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00401240
mov byte [edi + 0x151], 1
mov byte [edi + 0x152], 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401240
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401240
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401240
call fcn.0046adbe
ret 0x10
Function at 0x4407b3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0046a630
add esp, 0xc
mov dword [ebp - 0x44], 0x44
cmp byte [ebp + 0x10], bl
je 0x4407e5
push 0xb
pop eax
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], ax
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop ebx
leave
ret 0xc

Function at 0x44080a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 8]
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x44083d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
ret 4

Function at 0x4494c0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x491b4d
call fcn.0046ace6
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4494e5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x44952b
lea ecx, [ebp - 0x10]
call fcn.004036fd
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004469a6
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401240
mov eax, esi
call fcn.0046adbe
ret 8

Function at 0x44ba5d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44baa5
call fcn.0044876c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44baa5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x44bae8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44bad1
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44bad1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44bae5
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x44d119
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x44d13d
cmp dword [edi + 0x54], 0
jne 0x44d13d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0044876c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0044d0da
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4539dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x453a23
call fcn.0044876c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x453a23
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x453a3f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00453556
mov esi, eax
test edi, edi
je 0x453a3d
test ebx, ebx
je 0x453a3d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x45835c
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x458387
call fcn.0044876c
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x4583aa
push eax
push dword [esi + 4]
call fcn.004582e2
push esi
push eax
mov ecx, 0x4caa40
call fcn.00457f56
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x458bf2
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x49254d
call fcn.0046ace6
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00458bb2
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004036fd
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x458c58
push eax
push dword [esi + 8]
call fcn.004582e2
push dword [esi + 0xc]
mov ecx, 0x4caa40
push eax
call fcn.00457f56
mov eax, esi
call fcn.0046adbe
ret 0x18
Function at 0x46acd7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c72ac]
jne 0x46ace1
repz ret
jmp fcn.0047549c

Function at 0x482564
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00473474
and dword [ebp - 4], 0
cmp dword [0x4cb80c], 0
mov ebx, eax
jne 0x482615
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4826c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b05a8
push edi
call esi
test eax, eax
je 0x4826c6
push eax
call fcn.00473402
mov dword [esp], 0x4b0598
push edi
mov dword [0x4cb80c], eax
call esi
push eax
call fcn.00473402
mov dword [esp], 0x4b0584
push edi
mov dword [0x4cb810], eax
call esi
push eax
call fcn.00473402
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4cb814], eax
call esi
push eax
call fcn.00473402
pop ecx
mov dword [0x4cb81c], eax
test eax, eax
je 0x482615
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00473402
pop ecx
mov dword [0x4cb818], eax
mov eax, dword [0x4cb818]
cmp eax, ebx
je 0x48266d
cmp dword [0x4cb81c], ebx
je 0x48266d
push eax
call fcn.0047347d
push dword [0x4cb81c]
mov esi, eax
call fcn.0047347d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48266d
test edi, edi
je 0x48266d
call esi
test eax, eax
je 0x482664
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x482664
test byte [ebp - 0xc], 1
jne 0x48266d
or dword [ebp + 0x10], 0x200000
jmp 0x4826a6
mov eax, dword [0x4cb810]
cmp eax, ebx
je 0x4826a6
push eax
call fcn.0047347d
pop ecx
test eax, eax
je 0x4826a6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4826a6
mov eax, dword [0x4cb814]
cmp eax, ebx
je 0x4826a6
push eax
call fcn.0047347d
pop ecx
test eax, eax
je 0x4826a6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4cb80c]
call fcn.0047347d
pop ecx
test eax, eax
je 0x4826c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4826c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40654a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x970198]
jne 0x406554
repz ret
jmp fcn.00407f86

Function at 0x407096
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405c72
and dword [ebp - 4], 0
cmp dword [0x991cec], 0
mov ebx, eax
jne 0x407147
push 0x4019c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4071f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019bc
push edi
call esi
test eax, eax
je 0x4071f8
push eax
call fcn.00405c00
mov dword [esp], 0x4019ac
push edi
mov dword [0x991cec], eax
call esi
push eax
call fcn.00405c00
mov dword [esp], 0x401998
push edi
mov dword [0x991cf0], eax
call esi
push eax
call fcn.00405c00
mov dword [esp], 0x40197c
push edi
mov dword [0x991cf4], eax
call esi
push eax
call fcn.00405c00
pop ecx
mov dword [0x991cfc], eax
test eax, eax
je 0x407147
push 0x401964
push edi
call esi
push eax
call fcn.00405c00
pop ecx
mov dword [0x991cf8], eax
mov eax, dword [0x991cf8]
cmp eax, ebx
je 0x40719f
cmp dword [0x991cfc], ebx
je 0x40719f
push eax
call fcn.00405c7b
push dword [0x991cfc]
mov esi, eax
call fcn.00405c7b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40719f
test edi, edi
je 0x40719f
call esi
test eax, eax
je 0x407196
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407196
test byte [ebp - 0xc], 1
jne 0x40719f
or dword [ebp + 0x10], 0x200000
jmp 0x4071d8
mov eax, dword [0x991cf0]
cmp eax, ebx
je 0x4071d8
push eax
call fcn.00405c7b
pop ecx
test eax, eax
je 0x4071d8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4071d8
mov eax, dword [0x991cf4]
cmp eax, ebx
je 0x4071d8
push eax
call fcn.00405c7b
pop ecx
test eax, eax
je 0x4071d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x991cec]
call fcn.00405c7b
pop ecx
test eax, eax
je 0x4071f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4071fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41531b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414fc9

Function at 0x415fe3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x402b60
push 0x402b58
push 0x402b60
push 3
call fcn.00415e89
add esp, 0x10
test eax, eax
je 0x416008
pop ebp
jmp eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop ebp
ret 4

Function at 0x41603e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x402b84
push 0x402b7c
push 0x402b84
push 5
call fcn.00415e89
add esp, 0x10
test eax, eax
je 0x416063
pop ebp
jmp eax
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41606a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x402b98
push 0x402b90
push 0x402b98
push 6
call fcn.00415e89
add esp, 0x10
test eax, eax
je 0x41608f
pop ebp
jmp eax
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4014a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eade
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x417040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.00401240
mov ecx, eax
test ecx, ecx
je 0x401663
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push 2
push str.UninstallString
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallFast_
push 0x80000002
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edi, dword [ebp - 0x10]
test edi, edi
js 0x40167d
mov eax, dword [esi]
mov ebx, 1
mov ecx, ebx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x401559
push edi
mov ecx, esi
call fcn.00401dc0
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40167d
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
mov eax, dword [esi]
cmp dword [eax - 4], ebx
jle 0x401580
push dword [eax - 0xc]
mov ecx, esi
call fcn.00401d10
lea eax, [ebp - 0x10]
push eax
push dword [esi]
lea eax, [ebp - 0x14]
push eax
push 2
push str.UninstallString
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallFast_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x40167d
push str.uninstaller.exe
push eax
call fcn.004032ff
mov edi, eax
add esp, 8
test edi, edi
je 0x40167d
sub edi, dword [esi]
sar edi, 1
js 0x40167d
mov eax, dword [esi]
sub ebx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ebx, eax
jge 0x4015e5
push edi
mov ecx, esi
call fcn.00401dc0
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40167d
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
cmp eax, 1
jl 0x40164f
cmp dword [ecx - 4], 1
lea edi, [eax - 1]
jle 0x401616
push eax
mov ecx, esi
call fcn.00401d10
mov eax, dword [esi]
lea edx, [edi*2 + 2]
lea ecx, [eax + 2]
test edx, edx
je 0x401639
test eax, eax
je 0x40166d
test ecx, ecx
je 0x40166d
push edx
push ecx
push eax
call fcn.00403790
add esp, 0xc
test edi, edi
js 0x40167d
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40167d
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
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 0x80004005
call fcn.00401110
call fcn.004057dd
mov dword [eax], 0x16
call fcn.0040571f
push 0x80070057
call fcn.00401110
int3
Function at 0x402c40
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402c7f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402c7f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402c7f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402c7f
cmp dword [ecx + 0x74], 0xe
jbe 0x402c7f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407dcb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411db4
push 0x411dac
push str.FlsAlloc
push 0x1f
call fcn.00407ca9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407dff
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f188]
call esi
jmp 0x407e05
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407e49
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411dc4
push 0x411dbc
push str.FlsGetValue
push 0x21
call fcn.00407ca9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e80
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407e88
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411dcc
push 0x411dc4
push str.FlsSetValue
push 0x22
call fcn.00407ca9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407ec2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x409720
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x417040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40976b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004098bb
test al, al
jne 0x409765
sub edx, 2
cmp edx, edi
jne 0x40974b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40978d
lea eax, [edi + 2]
cmp edx, eax
je 0x40978d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040966c
add esp, 0x10
jmp 0x409887
push esi
lea ecx, [ebp - 0x255]
call fcn.004098bb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4097d0
push dword [ebp - 0x25c]
jmp 0x40977d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40980d
cmp word [ebp - 0x226], 0
je 0x40982e
cmp word [ebp - 0x226], ax
jne 0x40980d
cmp word [ebp - 0x224], 0
je 0x40982e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040966c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40987a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4097e7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x409862
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x409887
push 0x40949c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040bcd0
add esp, 0x10
jmp 0x409857
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402071
leave
ret

Function at 0x40a205
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40a216
pop esi
ret
push ebx
push edi
push esi
call fcn.0040a1ce
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00407fed
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40a23e
push ebx
push esi
push edi
call fcn.00403790
add esp, 0xc
push 0
call fcn.00407704
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40a60e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040a253
Function at 0x40e960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e98d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e98d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret