joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d3d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408a8b
mov dword [ebp - 0x14], eax
cmp dword [0x453884], esi
jne 0x40d4cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d458
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d5ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d5ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d5ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x453884], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x453888], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45388c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453894], eax
test eax, eax
je 0x40d4c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453890], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d4f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d4e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d505
push 4
pop eax
jmp 0x40d5ad
cmp dword [ebp - 0x14], esi
je 0x40d505
push dword [0x453884]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d4ea
mov eax, dword [0x453890]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d563
cmp dword [0x453894], edi
je 0x40d563
push eax
call ebx
push dword [0x453894]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d563
test eax, eax
je 0x40d563
call ecx
test eax, eax
je 0x40d558
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d558
test byte [ebp - 8], 1
jne 0x40d563
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d593
mov eax, dword [0x453888]
cmp eax, edi
je 0x40d590
push eax
call ebx
test eax, eax
je 0x40d590
call eax
mov esi, eax
test esi, esi
je 0x40d590
mov eax, dword [0x45388c]
cmp eax, edi
je 0x40d590
push eax
call ebx
test eax, eax
je 0x40d590
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x453884]
call ebx
test eax, eax
je 0x40d5ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d5ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f8b
mov esp, ebp
pop ebp
ret
Function at 0x402bc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test al, 0x50
call fcn.00402926
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004028db
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x402c04
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00402916
ret 0xfffc
invalid
fcomp qword [edx + 0x458d2587]
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x406670
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.004088c0
test eax, eax
je 0x4066a2
mov eax, 1
jmp 0x406747
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4066c1
xor eax, eax
jmp 0x406747
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x21c]
add edx, 0x230
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40672e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406747
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret
Function at 0x45af40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.0045b500
push dword [0x4e7ca8]
call fcn.0040e430
mov eax, dword [0x4e788c]
add esp, 4
test eax, eax
je 0x45af66
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.00462ea0
push 2
push dword [0x4ea4c4]
call fcn.004030c0
add esp, 8
cmp eax, 3
jne 0x45af85
call fcn.00464d20
call fcn.00460f60
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp + 8]
call fcn.0049b81a
int3

Function at 0x45b290
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4e5814]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.0040de10
push dword [0x4be594]
mov esi, eax
lea eax, [ebp - 0x68]
push str._.70s_Command_Line_Error
push eax
call fcn.004089b0
add esp, 0x14
lea eax, [ebp - 0x68]
push 0x10
push eax
push esi
push dword [0x4ea4b8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.0040e430
add esp, 4
push 1
call fcn.0049b81a
int3

Function at 0x45b540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x4e5814]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 1
jne 0x45b589
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4e8090]
js 0x45b575
cmp eax, 0x32
jl 0x45b671
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x4e8090], eax
jmp 0x45b659
cmp eax, 3
jne 0x45b618
push 0x6c
push dword [0x4ea4c4]
call fcn.00403060
mov ecx, dword [0x4e8064]
add esp, 8
mov esi, eax
test ecx, ecx
je 0x45b5c1
push 0x20001
push 0
push dword [esi]
call ecx
test eax, eax
jne 0x45b659
push dword [esi]
lea eax, [ebp - 0x58]
push str.Unable_to_play_sound_file_n_s_nUsing_default_sound_instead
push eax
call fcn.004089b0
push dword [0x4be594]
lea eax, [ebp - 0xbc]
push str._.70s_Sound_Error
push eax
call fcn.004089b0
add esp, 0x18
lea eax, [ebp - 0xbc]
push 0x30
push eax
lea eax, [ebp - 0x58]
push eax
push dword [0x4ea4b8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
push 0x66
push dword [0x4ea4c4]
call fcn.00403560
add esp, 0xc
jmp 0x45b659
cmp eax, 4
jne 0x45b659
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4e8094]
js 0x45b632
cmp eax, 0x32
jl 0x45b671
cmp dword [0x4ea410], 2
jne 0x45b64a
push 0x64
push 0x320
call dword [sym.imp.KERNEL32.dll_Beep]
jmp 0x45b652
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x4e8094], eax
mov eax, dword [0x4ea4ac]
cmp dword [eax + 0x134], 0
jne 0x45b671
push 2
call fcn.0045c6c0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046addd
mov esp, ebp
pop ebp
ret

Function at 0x45d9f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [0x4ea4b8]
push 0x45b150
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret
Function at 0x45e260
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e5814]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push 0x14
push ecx
push 0x1004
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x18]
push eax
call fcn.00477691
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov dword [0x4e6ae8], eax
call fcn.0046addd
mov esp, ebp
pop ebp
ret

Function at 0x45e4e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4e5814]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 2
push dword [0x4ea4c4]
call fcn.004030c0
push eax
call fcn.00412d30
add esp, 0xc
mov dword [0x4e6af0], eax
test eax, eax
je 0x45e67e
push 8
push dword [0x4ea4c4]
call fcn.004030c0
add esp, 8
push eax
push 7
push dword [0x4ea4c4]
call fcn.004030c0
add esp, 8
push eax
lea eax, [ebp - 0x408]
push eax
push 1
push dword [0x4ea4c4]
call fcn.004030c0
add esp, 8
push eax
push 0
push dword [0x4ea4c4]
call fcn.00403120
add esp, 8
push eax
push dword [0x4ea4c4]
mov eax, dword [0x4e6af0]
push 0x4e6af4
push 0
mov eax, dword [eax]
call eax
mov ecx, dword [0x4e6af0]
mov edi, eax
push dword [0x4ea4a8]
push dword [0x4e6af4]
mov ecx, dword [ecx + 0x34]
call ecx
add esp, 0x28
test edi, edi
jne 0x45e6b3
push 0x5f
push dword [0x4ea4c4]
mov dword [0x4e7fe4], edi
mov dword [0x4e7fe0], edi
call fcn.00403120
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x45e5e6
push dword [0x4be594]
lea eax, [ebp - 0x404]
push dword [ebp - 0x408]
push str._s____s
push eax
call fcn.004089b0
add esp, 0x10
lea esi, [ebp - 0x404]
push dword [ebp - 0x408]
call fcn.0040e430
push esi
push 0
call fcn.0045e370
push esi
push 0
call fcn.0045e190
mov eax, dword [0x4e6af0]
push dword [0x4e6af4]
push dword [eax + 0x14]
push dword [0x4ea4ac]
call fcn.0044d390
push 0
push dword [0x4e6af4]
push dword [0x4e6af0]
push dword [0x4ea4ac]
push dword [0x4ea4c4]
call fcn.00409de0
mov edi, dword [sym.imp.USER32.dll_DeleteMenu]
add esp, 0x34
mov dword [0x4e6aec], eax
xor esi, esi
nop dword [eax]
push 0
push 0x40
push dword [esi + 0x4e7628]
call edi
add esi, 4
cmp esi, 8
jb 0x45e650
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x4e7608], 0
pop esi
call fcn.0046addd
mov esp, ebp
pop ebp
ret
push dword [0x4be594]
push str._s_Internal_Error
call fcn.0040dda0
add esp, 8
mov esi, eax
push 0x30
push esi
push str.Unsupported_protocol_number_found
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.0040e430
add esp, 4
push 1
call fcn.0045af40
push dword [0x4be594]
push str._s_Error
call fcn.0040dda0
add esp, 8
mov esi, eax
push edi
push dword [0x4ea4c4]
call fcn.0040dbc0
add esp, 4
push eax
lea eax, [ebp - 0x404]
push str.Unable_to_open_connection_to_n_.800s_n_s
push eax
call fcn.004089b0
add esp, 0x10
lea eax, [ebp - 0x404]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.0040e430
add esp, 4
push 0
call fcn.0049b81a
int3
Function at 0x45ebe0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
lea eax, [ebx + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x45ec87
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x45ec86
push ebx
push dword [ebp + 0xc]
push edi
call fcn.0046c130
add esp, 0xc
mov byte [edi + ebx], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
test ebx, ebx
jne 0x45ec45
push 0
push 1
push 0x8002
push dword [0x4ea4b8]
call edi
push dword [0x4ea4b8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45ec6c
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x45ec73
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x45ec86
push ebx
push ebx
push 0x8002
push dword [0x4ea4b8]
call edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x460670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.0040e450
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
lea ebx, [edi + 4]
mov dword [ebx], ecx
push 0
push 0
push 0
push 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1030], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [0x4e80c0]
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test eax, eax
jne 0x4606fc
push 0x4603c0
call fcn.0044f770
add esp, 4
mov dword [0x4e80c0], eax
push edi
push eax
call fcn.0044e920
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x460730
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x1c], 1
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4608c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.0040e450
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
lea ebx, [edi + 4]
mov dword [ebx], ecx
push 0
push 0
push 0
push 0
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x38]
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0040da80
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [edi + 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [0x4e80c0]
mov dword [edi + 0x44], 0
test eax, eax
jne 0x460963
push 0x4603c0
call fcn.0044f770
add esp, 4
mov dword [0x4e80c0], eax
push edi
push eax
call fcn.0044e920
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x460990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461fe0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4e88ec], 0
push esi
push edi
jne 0x46203c
push str.secur32.dll
call fcn.00462120
push str.sspicli.dll
mov esi, eax
call fcn.00462120
add esp, 8
test esi, esi
je 0x462029
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e88e8], eax
mov dword [0x4e88ec], 1
jmp 0x462041
xor eax, eax
mov dword [0x4e88ec], 1
mov dword [0x4e88e8], eax
jmp 0x462041
mov eax, dword [0x4e88e8]
test eax, eax
je 0x46209a
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 8
call eax
push 1
push dword [ebp - 4]
call fcn.0040e450
add esp, 8
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 8
call dword [0x4e88e8]
movzx esi, al
test al, al
je 0x46208d
push 0x40
push edi
call fcn.0046c000
add esp, 8
test eax, eax
je 0x462096
mov byte [eax], 0
jmp 0x462096
push edi
call fcn.0040e430
add esp, 4
test esi, esi
jne 0x4620e2
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
push eax
push 0
mov dword [ebp - 4], 0
call esi
mov ecx, dword [ebp - 4]
test eax, eax
mov edx, pe_nt_image_headers32
cmove ecx, edx
push 1
push ecx
mov dword [ebp - 4], ecx
call fcn.0040e450
add esp, 8
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call esi
mov esi, eax
test esi, esi
jne 0x4620e2
push edi
call fcn.0040e430
add esp, 4
xor eax, eax
test esi, esi
cmovne eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x462120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4e88f8]
push esi
push edi
test ecx, ecx
jne 0x462166
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
add esi, 0x200
push esi
push ecx
call fcn.0040e500
add esp, 0xc
mov dword [0x4e88f8], eax
push esi
push eax
call edi
mov ecx, dword [0x4e88f8]
cmp eax, esi
jge 0x462137
push 0
push dword [ebp + 8]
push 0x4d708c
push ecx
call fcn.0040dce0
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.0040e430
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4649a0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4e5814]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push edi
push 0x107
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x12c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4649d1
mov ax, word [0x4d7a2c]
mov word [ecx], ax
mov al, byte [0x4d7a2e]
mov byte [ecx + 2], al
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x464a37
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea eax, [ebp - 0x26c]
push 0x140
push eax
call esi
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push edi
call ebx
test eax, eax
jne 0x464a10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push 4
push eax
call esi
add esp, 8
cmp dword [0x4e8fec], 0
jne 0x464ad4
push str.advapi32.dll
call fcn.00462120
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x4e8fec], eax
test eax, eax
je 0x464a87
push str.CryptAcquireContextA
push eax
call edi
mov ecx, eax
mov eax, dword [0x4e8fec]
jmp 0x464a89
xor ecx, ecx
mov dword [0x4e8fe0], ecx
test eax, eax
je 0x464aa4
push str.CryptGenRandom
push eax
call edi
mov ecx, eax
mov eax, dword [0x4e8fec]
jmp 0x464aa6
xor ecx, ecx
mov dword [0x4e8fe4], ecx
test eax, eax
je 0x464ac8
push str.CryptReleaseContext
push eax
call edi
cmp dword [0x4e8fec], 0
mov dword [0x4e8fe8], eax
je 0x464b37
jmp 0x464ad9
mov dword [0x4e8fe8], 0
jmp 0x464b37
mov eax, dword [0x4e8fe8]
mov ecx, dword [0x4e8fe0]
test ecx, ecx
je 0x464b37
cmp dword [0x4e8fe4], 0
je 0x464b37
test eax, eax
je 0x464b37
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call ecx
test eax, eax
je 0x464b37
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x270]
call dword [0x4e8fe4]
test eax, eax
je 0x464b29
lea eax, [ebp - 0x24]
push 0x20
push eax
call esi
add esp, 8
push 0
push dword [ebp - 0x270]
call dword [0x4e8fe8]
push esi
call fcn.004673f0
add esp, 4
call fcn.00464d20
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046addd
mov esp, ebp
pop ebp
ret
Function at 0x465c40
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4e9020], 0
jne 0x465d6d
push esi
push str.advapi32.dll
mov dword [0x4e9020], 1
call fcn.00462120
add esp, 4
mov dword [0x4e9028], eax
test eax, eax
je 0x465d64
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4ea3cc], eax
test eax, eax
je 0x465d64
mov eax, dword [0x4e9028]
test eax, eax
je 0x465ca7
push str.SetSecurityInfo
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e9028]
jmp 0x465ca9
xor ecx, ecx
mov dword [0x4ea3c8], ecx
test ecx, ecx
je 0x465d64
test eax, eax
je 0x465ccc
push str.OpenProcessToken
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e9028]
jmp 0x465cce
xor ecx, ecx
mov dword [0x4ea3dc], ecx
test ecx, ecx
je 0x465d64
test eax, eax
je 0x465cf1
push str.GetTokenInformation
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e9028]
jmp 0x465cf3
xor ecx, ecx
mov dword [0x4ea3d8], ecx
test ecx, ecx
je 0x465d64
test eax, eax
je 0x465d12
push 0x4d7d24
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e9028]
jmp 0x465d14
xor ecx, ecx
mov dword [0x4ea3d4], ecx
test ecx, ecx
je 0x465d64
test eax, eax
je 0x465d33
push 0x4d7d44
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e9028]
jmp 0x465d35
xor ecx, ecx
mov dword [0x4ea3d0], ecx
test ecx, ecx
je 0x465d64
test eax, eax
je 0x465d4d
push str.SetEntriesInAclA
push eax
call esi
jmp 0x465d4f
xor eax, eax
mov dword [0x4ea3c4], eax
test eax, eax
je 0x465d64
mov eax, 1
mov dword [0x4e9024], eax
pop esi
ret
xor eax, eax
mov dword [0x4e9024], eax
pop esi
ret
mov eax, dword [0x4e9024]
ret
Function at 0x466e70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4e5814]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
call fcn.00466b40
add esp, 4
call fcn.00461410
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x110]
push eax
push str.SoftwareSimonTathamPuTTY
push 0x80000001
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x466ecd
push dword [ebp - 0x110]
call fcn.00467690
add esp, 4
push dword [ebp - 0x110]
call ebx
lea eax, [ebp - 0x110]
push eax
push str.SoftwareSimonTatham
push 0x80000001
call edi
test eax, eax
jne 0x466f4f
push esi
push str.PuTTY
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 0x110]
mov esi, eax
call ebx
test esi, esi
pop esi
je 0x466f4f
lea eax, [ebp - 0x110]
push eax
push str.Software
push 0x80000001
call edi
test eax, eax
jne 0x466f4f
push str.SimonTatham
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x110]
call ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0046addd
mov esp, ebp
pop ebp
ret

Function at 0x466f80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x466fee
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x466fa6
sub eax, edx
push 1
lea eax, [eax + eax*2]
inc eax
push eax
call fcn.0040e450
mov esi, eax
push esi
push edi
call fcn.004671d0
add esp, 0x10
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.0040e430
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00461690
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x467020
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea edi, [eax + eax*2]
push 1
push edi
call fcn.0040e450
mov esi, dword [ebp + 8]
add esp, 8
mov ebx, eax
mov edx, dword [esi + 4]
push edi
push ebx
push edx
push dword [esi]
lea ecx, [edx + 1]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x467071
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.00467b30
push ebx
call fcn.0040e430
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
call fcn.0040e430
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret