joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a1ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40a232
call fcn.004146ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a232
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40a275
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40a25e
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 0x40a25e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40a272
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 0x40cbec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004146ed
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40cc17
xor eax, eax
jmp 0x40ccbb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40cc10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40cc10
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408ff6
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x40cc6c
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x40cc5b
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0040b983
push edi
mov ebx, eax
call fcn.00409026
test ebx, ebx
pop ecx
je 0x40ccae
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0040c0a3
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0040c155
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x412243
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41227c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040d2ab
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040adc4
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x413e09
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 0x413e4c
call fcn.004146ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413e4c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x413e67
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004139c0
test ebx, ebx
mov esi, eax
je 0x413e65
test edi, edi
je 0x413e65
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41502b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43fa6d
call fcn.0042bfb0
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x415050
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41509c
call fcn.00416f1e
push eax
lea ecx, [ebp - 0x10]
call fcn.00402e50
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.00414919
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.00402e30
mov eax, esi
call fcn.0042c088
ret 8

Function at 0x417a5a
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x417a63
xor eax, eax
jmp 0x417acc
cmp dword [esp + 8], 0
jne 0x417a6f
call fcn.00416e45
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0042ee5a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x417aaa
push dword [esi + 0x10]
call fcn.0042eb9f
test eax, eax
pop ecx
jne 0x417aaa
mov esi, dword [esi + 0xc]
call fcn.0042c544
push esi
push dword [eax]
push 1
call fcn.004259d3
push dword [esi + 0x10]
call fcn.0042ebce
test eax, eax
pop ecx
je 0x417ac9
push dword [esi + 0x10]
call fcn.0042eaf3
push eax
call fcn.00403600
pop ecx
pop ecx
jmp 0x417a98
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x417ad5
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x417adf
call fcn.00416e45
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0042ef8f
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x417b0c
mov esi, dword [esi + 0xc]
call fcn.0042c544
push esi
push dword [eax]
push 1
call fcn.004259d3
pop esi
ret 8
Function at 0x418cb9
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 0x418ce7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418d05
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00418c23
jmp 0x418d05
mov eax, dword [esi + 0x14]
test eax, eax
je 0x418d05
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00418c23
test edi, edi
mov eax, edi
jne 0x418cef
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x455568]
test ecx, ecx
je 0x418dc8
jmp 0x418cb8
ret 8

Function at 0x42aa3b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x452650]
jne 0x42aa45
repz ret
jmp fcn.0043099a
Function at 0x43ad1a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00430b01
xor ebx, ebx
cmp dword [0x45631c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43adef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x43ad5a
xor eax, eax
jmp 0x43aeb3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x447000
push edi
call esi
cmp eax, ebx
je 0x43ad53
push eax
call fcn.00430a9e
mov dword [esp], 0x446ff0
push edi
mov dword [0x45631c], eax
call esi
push eax
call fcn.00430a9e
mov dword [esp], 0x446fdc
push edi
mov dword [0x456320], eax
call esi
push eax
call fcn.00430a9e
mov dword [0x456324], eax
lea eax, [ebp - 8]
push eax
call fcn.0042c163
test eax, eax
pop ecx
pop ecx
je 0x43adbd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043156f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43adef
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00430a9e
cmp eax, ebx
pop ecx
mov dword [0x45632c], eax
je 0x43adef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00430a9e
pop ecx
mov dword [0x456328], eax
mov eax, dword [0x456328]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x43ae68
cmp dword [0x45632c], esi
je 0x43ae68
push eax
call fcn.00430b0a
pop ecx
call eax
cmp eax, ebx
je 0x43ae35
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45632c]
call fcn.00430b0a
pop ecx
call eax
test eax, eax
je 0x43ae35
test byte [ebp - 0x18], 1
jne 0x43ae68
lea eax, [ebp - 0xc]
push eax
call fcn.0042c19a
test eax, eax
pop ecx
je 0x43ae50
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043156f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43ae5f
or dword [ebp + 0x10], 0x200000
jmp 0x43ae99
or dword [ebp + 0x10], 0x40000
jmp 0x43ae99
mov eax, dword [0x456320]
cmp eax, esi
je 0x43ae99
push eax
call fcn.00430b0a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43ae99
mov eax, dword [0x456324]
cmp eax, esi
je 0x43ae99
push dword [ebp - 4]
push eax
call fcn.00430b0a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45631c]
call fcn.00430b0a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f438
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x452650]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043f3cd
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.0042c580
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 0x43f487
cmp dword [ebp - 0x1c], 5
jb 0x43f49f
jmp 0x43f49b
cmp dword [ebp - 0x10], 1
jne 0x43f49f
cmp dword [ebp - 0x1c], 4
ja 0x43f49b
jne 0x43f49f
cmp dword [ebp - 0x18], 0
jbe 0x43f49f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4481d8
call fcn.0043f2be
test eax, eax
jge 0x43f4c0
mov byte [0x45646c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042aa3b
add ebp, 0x78
leave
ret
Function at 0x401d37
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x411398]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [0x412174]
cmp eax, 0xffffffff
jne 0x401d8c
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00405470
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
sbb eax, eax
inc eax
mov dword [0x412174], eax
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00403ce5
add ebp, 0x98
leave
ret
Function at 0x4025de
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ca1e
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.0040c7e0
mov eax, dword [0x411398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x201c], edi
push 0x1ffe
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push edi
push eax
mov dword [ebp - 0x2028], ebx
call fcn.00405470
add esp, 0xc
lea eax, [ebp - 0x2010]
push eax
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x2010]
push eax
mov esi, ebx
call fcn.00401135
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2030]
mov ecx, ebx
mov dword [ebp - 0x201c], 1
call fcn.0040287e
mov ecx, dword [eax]
mov eax, dword [eax + 4]
or edi, 0xffffffff
lea esi, [ebp - 0x2018]
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x2014], eax
call fcn.00402976
mov eax, dword [ebp - 0x2018]
mov dword [ebp - 0x2024], eax
mov eax, dword [ebp - 0x2014]
lea esi, [ebp - 0x2024]
mov dword [ebp - 0x2020], eax
call fcn.00402942
cmp word [eax], 0x5c
je 0x4026c7
mov eax, ebx
call fcn.004028a4
mov eax, ebx
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.00403ce5
leave
ret

Function at 0x4026e2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40272c
push esi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], edi
push ebx
sete byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
jmp 0x40272e
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x402732
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x202c
call fcn.0040c7e0
mov eax, dword [0x411398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40f478
xor esi, esi
push 0xac
mov edi, ecx
push esi
mov dword [ebp - 0x200c], edi
mov dword [ebp - 0x2010], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x402781
mov esi, edi
call fcn.0040286b
mov eax, edi
jmp 0x40285c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2010], eax
cmp edi, esi
je 0x40284f
cmp eax, esi
je 0x40284f
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2008], ax
lea eax, [ebp - 0x2006]
push esi
push eax
call fcn.00405470
add esp, 0xc
lea ebx, [ebp - 0x202c]
call fcn.004025de
cmp dword [eax + 0x18], 8
jb 0x4027e4
mov eax, dword [eax + 4]
jmp 0x4027e7
add eax, 4
lea ecx, [ebp - 0x2008]
push ecx
push esi
push 0x40f488
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push 1
lea esi, [ebp - 0x202c]
call fcn.00401174
push str..exe
lea eax, [ebp - 0x2008]
push 0x1000
push eax
call fcn.004046ec
add esp, 0xc
push edi
mov edi, dword [ebp - 0x2010]
lea eax, [ebp - 0x2008]
push eax
call fcn.004026e2
mov esi, dword [ebp - 0x200c]
pop ecx
pop ecx
test al, al
je 0x402855
lea eax, [ebp - 0x2008]
push eax
call fcn.00401135
jmp 0x40285a
mov esi, dword [ebp - 0x200c]
call fcn.0040286b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ce5
leave
ret

Function at 0x4037d8
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00402fd3
mov eax, dword [esi + 4]
push 0xae
push eax
mov dword [esi], 0x40f4f0
mov byte [esi + 0x34], 0
mov byte [esi + 0x35], 1
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push 0x40f4e0
push dword [esi + 8]
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 8]
push 0
mov edi, 0x424
push edi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
cmp byte [esi + 0x35], al
setne al
push eax
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
pop edi
mov eax, esi
pop esi
ret

Function at 0x403ce5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411398]
jne 0x403cef
repz ret
jmp fcn.00405369
Function at 0x40c2e2
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.00405f77
and dword [ebp - 4], 0
cmp dword [0x412d7c], 0
mov ebx, eax
jne 0x40c393
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c444
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c444
push eax
call fcn.00405f05
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x412d7c], eax
call esi
push eax
call fcn.00405f05
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x412d80], eax
call esi
push eax
call fcn.00405f05
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x412d84], eax
call esi
push eax
call fcn.00405f05
pop ecx
mov dword [0x412d8c], eax
test eax, eax
je 0x40c393
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405f05
pop ecx
mov dword [0x412d88], eax
mov eax, dword [0x412d88]
cmp eax, ebx
je 0x40c3eb
cmp dword [0x412d8c], ebx
je 0x40c3eb
push eax
call fcn.00405f80
push dword [0x412d8c]
mov esi, eax
call fcn.00405f80
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c3eb
test edi, edi
je 0x40c3eb
call esi
test eax, eax
je 0x40c3e2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c3e2
test byte [ebp - 0xc], 1
jne 0x40c3eb
or dword [ebp + 0x10], 0x200000
jmp 0x40c424
mov eax, dword [0x412d80]
cmp eax, ebx
je 0x40c424
push eax
call fcn.00405f80
pop ecx
test eax, eax
je 0x40c424
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c424
mov eax, dword [0x412d84]
cmp eax, ebx
je 0x40c424
push eax
call fcn.00405f80
pop ecx
test eax, eax
je 0x40c424
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412d7c]
call fcn.00405f80
pop ecx
test eax, eax
je 0x40c444
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c446
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40db65
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0041821f
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0041821f
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.0041821f
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0x38
call fcn.0041822b
cmp dword [ebp - 0x20], esp
je 0x40dc22
push 6
call fcn.00418225
add esp, 4
mov dword [ebp - 4], eax
mov eax, 0x4dd1b8
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40dc3b
push ebx
call fcn.00418219
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x39
call fcn.0041822b
cmp dword [ebp - 0x20], esp
je 0x40dc6a
push 6
call fcn.00418225
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x4bee82
mov eax, 0x3a
call fcn.0041822b
cmp dword [ebp - 0x20], esp
je 0x40dc94
push 6
call fcn.00418225
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 0x3b
call fcn.0041822b
cmp dword [ebp - 0x20], esp
je 0x40dd28
push 6
call fcn.00418225
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0x3c
call fcn.0041822b
cmp dword [ebp - 0x20], esp
je 0x40dd4d
push 6
call fcn.00418225
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x40dd55
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40dd66
push ebx
call fcn.00418219
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00418219
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00418219
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.00418219
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x424ba0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b525b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004a9698
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x424c22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a7123
mov eax, dword [eax]
push 0x52f250
push eax
call fcn.004990a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a9923
test bl, bl
je 0x424c22
push 0x52f250
lea ecx, [esp + 0xc]
call fcn.004a9cb3
push 0x532dd4
lea ecx, [esp + 0xc]
call fcn.004a9cb3
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x424c5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a9923
jmp 0x424d29
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x424ce2
lea edx, [esp + 0x7c]
push 0x532dd0
push edx
call fcn.004990a4
add esp, 8
test eax, eax
je 0x424ce2
lea eax, [esp + 0x7c]
push 0x532dcc
push eax
call fcn.004990a4
add esp, 8
test eax, eax
je 0x424ce2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x424c72
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004a9923
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x425520
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x425582
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc