joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ec0
Capabilities:
Enumerate threads
Resume thread

Disassembly:
sub esp, 0x20
push esi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], esi
je 0x401f62
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x1c
call sub.KERNEL32.dll_Thread32First
cmp eax, 1
jne 0x401f62
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x20], ecx
jne 0x401f44
mov edx, dword [esp + 0x1c]
push edx
push 0
push 2
call ebx
mov esi, eax
push esi
call ebp
push esi
call edi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x401f23
push esi
call edi
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x20
ret 4
mov eax, 1
pop esi
add esp, 0x20
ret 4

Function at 0x401f70
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x20
push esi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], esi
je 0x402012
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x1c
call sub.KERNEL32.dll_Thread32First
cmp eax, 1
jne 0x402012
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SuspendThread]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x20], ecx
jne 0x401ff4
mov edx, dword [esp + 0x1c]
push edx
push 0
push 2
call ebx
mov esi, eax
push esi
call ebp
push esi
call edi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x401fd3
push esi
call edi
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x20
ret 4
mov eax, 1
pop esi
add esp, 0x20
ret 4

Function at 0x402960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402979
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4029b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4029b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4029b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4029a0
cmp esi, eax
jb 0x4029ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403525
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42fde0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x403562
push 0x4268a0
push 4
push eax
call fcn.00412394
push eax
call fcn.004029d0
add esp, 0x10
jmp 0x403574
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4035df
push edi
call fcn.00412798
mov edi, dword [eax]
call fcn.00412798
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0041273e
add esp, 0x18
mov ebx, eax
call fcn.00412798
cmp dword [eax], 0
je 0x4035bf
call fcn.00412798
push dword [eax]
call fcn.004034c2
pop ecx
jmp 0x4035c6
call fcn.00412798
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4035df
cmp ebx, esi
jae 0x4035df
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4035e1
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041112e
leave
ret
Function at 0x4056b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4247bd
call fcn.00411fe9
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040d32b
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4056fb
call fcn.0040d32b
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x40570c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x405719
or eax, 0xffffffff
jmp 0x405875
mov ecx, esi
call fcn.00405202
mov dword [ebp - 0x14], eax
call fcn.004086c7
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x405797
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x405797
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405797
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00403512
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x405797
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x405797
mov ecx, ebx
call fcn.0040b3fe
test eax, eax
je 0x405797
push 0
mov ecx, ebx
call fcn.0040b419
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040a085
push dword [ebp - 0x14]
call fcn.0040861f
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004054b8
xor edi, edi
cmp eax, edi
je 0x4057f4
test byte [esi + 0x3c], 0x10
je 0x4057de
push 4
pop edi
mov ecx, esi
call fcn.0040b368
test ax, 0x100
je 0x4057d4
push 5
pop edi
push edi
mov ecx, esi
call fcn.004081b5
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4057f4
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040b480
or dword [ebp - 4], 0xffffffff
jmp 0x40581f
cmp dword [ebp - 0x28], edi
je 0x40582d
push 1
mov ecx, ebx
call fcn.0040b419
cmp dword [ebp - 0x2c], edi
je 0x40583d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x405856
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x405856
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040523c
cmp dword [esi + 0x58], edi
je 0x405872
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00412055
ret
Function at 0x40967b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4096b4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004060b0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00404512
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40b19f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40b1e2
call fcn.0040d32b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40b1e2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b1fd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040ad59
test ebx, ebx
mov esi, eax
je 0x40b1fb
test edi, edi
je 0x40b1fb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40dc64
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40dc92
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40dcb0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040dbce
jmp 0x40dcb0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40dcb0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040dbce
test edi, edi
mov eax, edi
jne 0x40dc9a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x432d64]
test ecx, ecx
je 0x40dd73
jmp 0x40dc63
ret 8

Function at 0x41112e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fde0]
jne 0x411138
repz ret
jmp fcn.0041614d
Function at 0x414f72
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42fe00]
je 0x414f8d
inc edi
cmp edi, 0x17
jb 0x414f7e
cmp edi, 0x17
jae 0x41510d
push ebp
push 3
call fcn.0041ceb0
cmp eax, 1
pop ecx
je 0x4150d9
push 3
call fcn.0041ceb0
test eax, eax
pop ecx
jne 0x414fc1
cmp dword [0x42fc48], 1
je 0x4150d9
cmp ebx, 0xfc
je 0x41510c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x433078
push ebp
call fcn.0041ce4b
add esp, 0xc
test eax, eax
je 0x414ff7
push esi
push esi
push esi
push esi
push esi
call fcn.00417105
add esp, 0x14
push 0x104
mov esi, 0x433091
push esi
push 0
mov byte [0x433195], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41503b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041ce4b
add esp, 0xc
test eax, eax
je 0x41503b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417105
add esp, 0x14
push esi
call fcn.0041cdc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x415080
push esi
call fcn.0041cdc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43338c
push 0x428ac4
sub ecx, eax
push ecx
push eax
call fcn.0041cd00
add esp, 0x14
test eax, eax
je 0x415080
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00417105
add esp, 0x14
jmp 0x415082
xor esi, esi
push 0x428ac0
push ebx
push ebp
call fcn.0041cc8f
add esp, 0xc
test eax, eax
je 0x4150a2
push esi
push esi
push esi
push esi
push esi
call fcn.00417105
add esp, 0x14
push dword [edi*8 + 0x42fe04]
push ebx
push ebp
call fcn.0041cc8f
add esp, 0xc
test eax, eax
je 0x4150c4
push esi
push esi
push esi
push esi
push esi
call fcn.00417105
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041cad2
add esp, 0xc
jmp 0x41510c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41510c
cmp ebp, 0xffffffff
je 0x41510c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42fe04]
push dword [esi]
call fcn.0041cdc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41cad2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00415b22
xor ebx, ebx
cmp dword [0x433b78], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41cba8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41cc88
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41cc88
push eax
call fcn.00415ab4
mov dword [esp], 0x428d78
push edi
mov dword [0x433b78], eax
call esi
push eax
call fcn.00415ab4
mov dword [esp], 0x428d64
push edi
mov dword [0x433b7c], eax
call esi
push eax
call fcn.00415ab4
mov dword [0x433b80], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00412121
test eax, eax
pop ecx
pop ecx
je 0x41cb76
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417105
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41cba8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00415ab4
cmp eax, ebx
pop ecx
mov dword [0x433b88], eax
je 0x41cba8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415ab4
pop ecx
mov dword [0x433b84], eax
mov eax, dword [0x433b84]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41cc2d
cmp dword [0x433b88], ecx
je 0x41cc2d
push eax
call fcn.00415b2b
push dword [0x433b88]
mov esi, eax
call fcn.00415b2b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41cc2d
cmp edi, ebx
je 0x41cc2d
call esi
cmp eax, ebx
je 0x41cbfa
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41cbfa
test byte [ebp - 0x18], 1
jne 0x41cc2d
lea eax, [ebp - 0x10]
push eax
call fcn.00412158
test eax, eax
pop ecx
je 0x41cc15
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417105
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41cc24
or dword [ebp + 0x10], 0x200000
jmp 0x41cc68
or dword [ebp + 0x10], 0x40000
jmp 0x41cc68
mov eax, dword [0x433b7c]
cmp eax, dword [ebp - 8]
je 0x41cc68
push eax
call fcn.00415b2b
cmp eax, ebx
pop ecx
je 0x41cc68
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41cc68
mov eax, dword [0x433b80]
cmp eax, dword [ebp - 8]
je 0x41cc68
push eax
call fcn.00415b2b
cmp eax, ebx
pop ecx
je 0x41cc68
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433b78]
call fcn.00415b2b
cmp eax, ebx
pop ecx
je 0x41cc88
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41cc8a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424236
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42fde0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004241cb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004127e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x424285
cmp dword [ebp - 0x1c], 5
jb 0x42429d
jmp 0x424299
cmp dword [ebp - 0x10], 1
jne 0x42429d
cmp dword [ebp - 0x1c], 4
ja 0x424299
jne 0x42429d
cmp dword [ebp - 0x18], 0
jbe 0x42429d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x429ec4
call fcn.0042409f
test eax, eax
jge 0x4242be
mov byte [0x434f48], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041112e
add ebp, 0x78
leave
ret
Function at 0x404960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5ec2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call fcn.0048ee50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x404a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x404a2f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048ee50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404a2f
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00404ac0
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.0048c66c
mov esp, ebp
pop ebp
ret
Function at 0x410820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7080
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x50b3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
mov dword [ebp - 4], 0
and ecx, 0xfffffffc
xor al, al
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.0044f7b0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov edx, dword [esi + 0x24]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 1
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.0044f7b0
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x41089c
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x4108ad
push 0x40
push esi
call fcn.0048c65e
add esp, 8
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 4
Function at 0x4119b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c71f2
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
xor eax, eax
mov dword [ebp - 4], 0
push 0x208
push eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x24c], 1
call fcn.0048ee50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x411a5d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a50
jmp 0x411aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x411ac2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048ee50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x411ac2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411aa0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00408330
push str._version.dll
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00402540
mov edx, dword [ebp - 0x21c]
add esp, 0xc
cmp edx, 8
jb 0x411b1d
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411b13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411bbe
push edx
push ecx
call fcn.0048c65e
add esp, 8
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x4d7048
push edi
call esi
push 0x4d7058
push edi
mov dword [0x50ff18], eax
call esi
push 0x4d706c
push edi
mov dword [0x50ff1c], eax
call esi
mov edx, dword [ebp - 0x234]
mov dword [0x50ff20], eax
cmp edx, 8
jb 0x411ba3
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411b99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411bc3
push edx
push ecx
call fcn.0048c65e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
call fcn.00497fa9
call fcn.00497fa9
int3
Function at 0x412990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7486
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x50b3e0]
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 + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24c], edi
push 0x208
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048ee50
add esp, 0xc
mov dword [ebp - 0x250], 0
mov ecx, esi
push 0xffffffffffffffff
push 0x4d70f4
call fcn.004168e0
mov ebx, eax
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [esi + 0x10], ebx
mov ecx, ebx
mov word [ebp - 0x248], ax
mov eax, esi
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x412a33
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00408330
mov ecx, dword [esi + 0x10]
xor edx, edx
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, ebx
mov dword [ebp - 0x220], 0
inc ebx
mov dword [ebp - 0x21c], 7
dec eax
mov word [ebp - 0x230], dx
cmp ecx, ebx
jb 0x412c05
sub ecx, ebx
cmp ecx, eax
cmovb eax, ecx
cmp dword [esi + 0x14], 8
jb 0x412a84
mov esi, dword [esi]
push eax
lea eax, [esi + ebx*2]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408330
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x250]
push ecx
push 0x20019
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412b14
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x24c], 0x208
push ecx
push 0
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412b30
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00408330
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x412b8e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412b84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c0a
push edx
push ecx
call fcn.0048c65e
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x412be7
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412bdd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c0a
push edx
push ecx
call fcn.0048c65e
add esp, 8
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.0048c66c
mov esp, ebp
pop ebp
ret
call fcn.00404a50
call fcn.00497fa9
int3
Function at 0x414600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4146ba
cmp byte [esi + 0x3d], 0
je 0x4146ba
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4146a8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x414670
sub eax, 1
je 0x414674
sub eax, 2
jne 0x4146a8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x414691
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0049de84
add esp, 0x10
cmp edi, eax
jne 0x4146a8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0048c66c
mov esp, ebp
pop ebp
ret