joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45145c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46abb0]
cmp dword [eax + 0x30], 0
je 0x451506
cmp dword [ebx + 0x94], 0
jne 0x451500
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4513ec
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451500
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4514c6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451500
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413778
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4514d5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452068
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45209d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f58
jmp 0x4520aa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ebc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4530fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45313d
mov eax, esi
call fcn.004398c4
test al, al
je 0x45313d
mov eax, dword [ebx + 0x84]
call fcn.004395c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45313d
push 0
mov eax, dword [ebx + 0x84]
call fcn.004395c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4568e8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x456916
mov eax, ebx
call fcn.0045739c
cmp dword [ebx + 0x40], 0
je 0x45690f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x456987
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x456979
cmp dword [ebx + 8], 0
je 0x456938
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45694a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x456979
cmp dword [ebx + 8], 0
je 0x45692b
cmp eax, 3
je 0x45695d
dec eax
jne 0x45692b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45692b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45692b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4569a5
cmp dword [ebx + 0x14], 0xcc
je 0x4569a5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004569b0
pop ebx
ret
Function at 0x71101340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
test byte [0x71105010], 1
jne 0x71101411
mov dword [esp + 8], 0
mov dword [esp + 4], sym._ServiceControlHandler_16
mov dword [esp], section..data
call sym._RegisterServiceCtrlHandlerExW_12
sub esp, 0xc
mov dword [0x71107020], eax
test eax, eax
je 0x71101460
mov eax, 2
call sym._UpdateServiceStatus
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._RpcThreadRoutine_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
test eax, eax
je 0x711013e0
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, 4
call sym._UpdateServiceStatus
leave
ret 8
test byte [0x71105010], 2
jne 0x711014b0
call sym._GetLastError_0
test eax, eax
je 0x711013cf
test byte [0x71105010], 2
jne 0x711014f0
mov eax, 1
call sym._UpdateServiceStatus
leave
ret 8
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], 0x71106180
mov dword [esp + 0x10], 0x88
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.ServiceMain
mov dword [esp + 0x18], eax
mov dword [esp + 8], 0x71106055
mov dword [esp + 4], 0x71105010
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x71101353
test byte [0x71105010], 2
je 0x711013d9
call sym._GetLastError_0
mov dword [esp + 0x14], str.RegisterServiceCtrlHandlerExW___failed___Error__lu__n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x8f
mov dword [esp + 0xc], str.ServiceMain
mov dword [esp + 8], 0x71106055
mov dword [esp + 4], 0x71105010
mov dword [esp], 1
call sym._ros_dbg_log
leave
ret 8
mov dword [esp + 0x14], str.Cant_create_PortThread_n
mov dword [esp + 0x10], 0x73
mov dword [esp + 0xc], str.ServiceInit
mov dword [esp + 8], 0x71106055
mov dword [esp + 4], 0x71105010
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x711013ed
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.Service_stopped__dwError:__lu_n
mov dword [esp + 0x10], 0x98
mov dword [esp + 0xc], str.ServiceMain
mov dword [esp + 8], 0x71106055
mov dword [esp + 4], 0x71105010
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x71101403
Function at 0x71101570
Capabilities:
Listen for remote procedure calls

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x71106234
mov dword [esp + 4], 0x14
mov dword [esp], 0x71106250
call sym._RpcServerUseProtseqEpW_16
sub esp, 0x10
test eax, eax
je 0x711015b4
test byte [0x71105020], 2
jne 0x71101642
leave
xor eax, eax
ret 4
mov eax, dword [0x71105074]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._RpcServerRegisterIf_12
sub esp, 0xc
test eax, eax
je 0x71101600
test byte [0x71105020], 2
je 0x711015ae
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RpcServerRegisterIf___failed__Status__lx__n
mov dword [esp + 0x10], 0x23
jmp 0x71101656
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4d2
mov dword [esp], 1
call sym._RpcServerListen_12
sub esp, 0xc
test eax, eax
je 0x711015ae
test byte [0x71105020], 2
je 0x711015ae
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RpcServerListen___failed__Status__lx__n
mov dword [esp + 0x10], 0x2a
jmp 0x71101656
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RpcServerUseProtseqEpW___failed__Status__lx__n
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0xc], str.RpcThreadRoutine
mov dword [esp + 8], 0x711062cd
mov dword [esp + 4], 0x71105020
mov dword [esp], 1
call sym._ros_dbg_log
xor eax, eax
leave
ret 4

Function at 0x71101b60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_I_BrowserServerEnumForXactsrv___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x71106ad7
mov dword [ebp - 0x40], str.I_BrowserServerEnumForXactsrv
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x71101bc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_SvchostPushServiceGlobals___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x71106ad7
mov dword [ebp - 0x40], str.SvchostPushServiceGlobals
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4
Function at 0x711038f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp + 0xc]
sub esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], 0x71106c38
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_vfprintf]
call sym._abort
lea esi, [esi]
Function at 0x401a2e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x264]
push edi
call fcn.0044ae90
test eax, eax
pop ecx
je 0x401a57
push edi
call fcn.0044ae50
and byte [edi], 0
pop ecx
lea eax, [ebp - 0x108]
push str.write.exe
push eax
call fcn.0044ad60
pop ecx
lea eax, [ebp - 0x20c]
pop ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push 0
lea eax, [ebp - 0x20c]
push 0x485448
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x2e
push edi
call fcn.0044ab00
pop ecx
test eax, eax
pop ecx
je 0x401aac
push str..rtf
push eax
call fcn.0044ad60
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0044ad70
push 0x48543c
push edi
call fcn.0044ad4d
mov ebx, eax
mov eax, dword [esi + 0x574]
mov esi, dword [esi + 0x56c]
add esp, 0x10
mov ecx, eax
dec eax
test ecx, ecx
je 0x401af6
inc eax
mov dword [ebp - 4], eax
push ebx
mov eax, esi
push 1
push 1
push eax
inc esi
call fcn.0044abe3
add esp, 0x10
dec dword [ebp - 4]
jne 0x401ae0
push ebx
call fcn.0044ab66
mov dword [esp], pe_nt_image_headers32
push edi
call fcn.0044ab27
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
cmp eax, 0x20
pop ebx
jae 0x401b38
push 0
call fcn.0040825c
push eax
push dword [0x485294]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret
Function at 0x402615
Capabilities:
Create process on windows

Disassembly:
push 1
push 0x485650
push 0
push str.http:__www.reallegal.com_binderpull.asp
push str.open
call fcn.00408262
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x402635
Capabilities:
Create process on windows

Disassembly:
push esi
lea esi, [ecx + 0x590]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40264c
mov esi, dword [esi]
jmp 0x402651
mov esi, str.http:__www.deposchedule.com_
push 1
push 0x485650
push 0
push esi
push str.open
call fcn.00408262
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
ret
Function at 0x406784
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406797
xor al, al
jmp 0x4067a6
mov edx, dword [esp + 8]
mov ecx, eax
shr ecx, 4
mov al, 1
and cl, al
mov byte [edx], cl
ret 8
Function at 0x407e42
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x470], ebx
jne 0x407f26
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x200
call fcn.0044b48e
pop ecx
mov dword [esi + 0x470], eax
push eax
push ebx
lea eax, [ebp - 0x108]
push 0x485fe4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [esi + 0x470]
call fcn.0044ae50
push 0x5c
push dword [esi + 0x470]
call fcn.0044ab00
add esp, 0xc
mov byte [eax], bl
push str._viewhelp.hlp
push dword [esi + 0x470]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x485fcc
push 0xfb7
push dword [0x493b24]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [0x493b24]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp - 4], eax
push dword [0x493b24]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x407f26
push ebx
push dword [esi + 0x470]
call dword [sym.imp.KERNEL32.dll__lcreat]
push dword [ebp - 4]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll__hwrite]
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [esi + 0x470]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408e9e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x20019
lea eax, [ebp - 0x408]
push 0
mov edi, SysReAllocString
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x408f68
lea eax, [ebp - 0x408]
push str.ptxfile_shellopencommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
lea eax, [ebp - 0x208]
neg esi
sbb esi, esi
push 0x25
push eax
inc esi
call fcn.0044ab00
pop ecx
test eax, eax
pop ecx
je 0x408f25
and byte [eax - 1], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.0044ab00
pop ecx
test eax, eax
pop ecx
je 0x408f57
inc eax
push str.pnxbndr.exe
push eax
call fcn.0044e1a0
mov esi, eax
pop ecx
neg esi
sbb esi, esi
pop ecx
inc esi
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.0044ad60
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x408f6e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0
push dword [ebp + 8]
call fcn.0044b448
pop ecx
test eax, eax
pop ecx
jne 0x409076
push esi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.0045db27
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x114]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
mov esi, 0x485650
push esi
push dword [ebp - 4]
call fcn.0044c211
pop ecx
test eax, eax
pop ecx
je 0x409068
push eax
call fcn.0044c17b
mov ecx, dword [ebp + 0xc]
push esi
push 0
mov dword [ecx], eax
call fcn.0044c211
add esp, 0xc
test eax, eax
je 0x409034
push eax
call fcn.0044c17b
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push esi
push 0
call fcn.0044c211
pop ecx
test eax, eax
pop ecx
je 0x40904e
push eax
call fcn.0044c17b
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push esi
push 0
call fcn.0044c211
pop ecx
test eax, eax
pop ecx
je 0x409068
push eax
call fcn.0044c17b
pop ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push edi
call fcn.0045db50
pop ecx
push 1
pop eax
pop edi
pop esi
leave
ret
xor eax, eax
leave
ret
Function at 0x409383
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x104]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call fcn.0040826e
mov ecx, eax
call fcn.00412aa5
test eax, eax
je 0x409489
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x208]
push str.etrnview.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040907a
pop ecx
pop ecx
push 1
test eax, eax
pop edi
je 0x4094eb
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x493b28
push 0x40
push ebx
push edi
push dword [ebp + 8]
call esi
call fcn.0040c1f2
add eax, 0x5d0
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040826e
mov ecx, eax
call fcn.00417133
lea eax, [ebp - 0x510]
push eax
call fcn.00408e9e
test eax, eax
pop ecx
jne 0x409490
push eax
lea eax, [ebp - 0x104]
push str.application_x_etranscript
push eax
push str.E_Transcript_File
push str.ptxfile
push str..ptx
call fcn.00409112
add esp, 0x18
test eax, eax
jne 0x409490
mov edi, 0x493b68
push 0x400
push edi
push 0xe
push dword [ebp + 8]
call esi
push 0x10
push ebx
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.0044ad60
lea eax, [ebp - 0x30c]
push 0x5c
push eax
call fcn.0044ab00
add esp, 0x10
test eax, eax
je 0x4094bb
and byte [eax], 0
lea eax, [ebp - 0x40c]
push 0xff
push eax
push 0x10
push dword [ebp + 8]
call esi
push 0
push edi
lea eax, [ebp - 0x40c]
push edi
push eax
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 8]
call fcn.00408c1a
add esp, 0x18
mov eax, edi
jmp 0x40948b
Function at 0x40e64c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx + 8]
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ecx + 4]
push edi
push 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
xor edx, edx
shl eax, 2
pop ecx
xor ebx, ebx
div ecx
push 0x4c
xor edx, edx
pop edi
xor esi, esi
mov ecx, eax
add ecx, 8
mov eax, ecx
div edi
lea eax, [ecx + eax*2]
push eax
call fcn.0045db27
mov edi, eax
pop ecx
test edi, edi
je 0x40e7c4
cmp dword [ebp - 4], 0
je 0x40e7a7
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov al, byte [eax]
movzx eax, al
mov ecx, eax
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi], cl
inc esi
inc ebx
cmp ebx, 0x4c
jne 0x40e6ca
xor ebx, ebx
mov byte [edi + esi], 0xd
inc esi
mov byte [edi + esi], 0xa
inc esi
dec dword [ebp - 4]
jne 0x40e6d3
xor cl, cl
jmp 0x40e6db
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov cl, byte [ecx]
movzx ecx, cl
mov edx, ecx
and eax, 3
shr edx, 4
shl eax, 4
or edx, eax
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi], al
inc esi
inc ebx
cmp ebx, 0x4c
jne 0x40e707
xor ebx, ebx
mov byte [edi + esi], 0xd
inc esi
mov byte [edi + esi], 0xa
inc esi
cmp dword [ebp - 4], 0
je 0x40e77b
dec dword [ebp - 4]
jne 0x40e716
xor al, al
jmp 0x40e71e
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov al, byte [eax]
movzx eax, al
mov edx, eax
and ecx, 0xf
shr edx, 6
shl ecx, 2
or edx, ecx
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi], cl
inc esi
inc ebx
cmp ebx, 0x4c
jne 0x40e74a
xor ebx, ebx
mov byte [edi + esi], 0xd
inc esi
mov byte [edi + esi], 0xa
inc esi
cmp dword [ebp - 4], 0
je 0x40e792
dec dword [ebp - 4]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi], al
inc esi
inc ebx
cmp ebx, 0x4c
jne 0x40e694
xor ebx, ebx
mov byte [edi + esi], 0xd
inc esi
mov byte [edi + esi], 0xa
inc esi
jmp 0x40e694
mov byte [edi + esi], 0x3d
inc esi
inc ebx
cmp ebx, 0x4c
jne 0x40e792
xor ebx, ebx
mov byte [edi + esi], 0xd
inc esi
mov byte [edi + esi], 0xa
inc esi
mov byte [edi + esi], 0x3d
inc esi
inc ebx
cmp ebx, 0x4c
jne 0x40e7a7
mov byte [edi + esi], 0xd
inc esi
mov byte [edi + esi], 0xa
inc esi
mov ebx, dword [ebp - 0xc]
and byte [edi + esi], 0
inc esi
push dword [ebx + 4]
call fcn.0045db50
pop ecx
mov dword [ebx + 4], edi
push 1
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40efbe
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 4], 0
lea edi, [esi + 4]
je 0x40eff7
push str.Registry
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40eff7
mov eax, dword [esi]
push edi
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40f06f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push eax
mov ecx, esi
call fcn.0040f15f
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
je 0x40f06f
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40f03c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
test edi, edi
je 0x40f06f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
call ebx
jmp 0x40f06a
cmp dword [ebp + 0xc], 0
jne 0x40f04e
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40f06a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40f0d9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
cmp byte [esi + 4], 0
lea edi, [esi + 4]
je 0x40f129
push str.Registry
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40f129
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push 0x4864c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x20]
mov ecx, esi
push edi
push eax
push dword [ebp + 8]
mov eax, dword [esi]
call dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40f159
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push eax
mov ecx, esi
call fcn.0040f15f
mov esi, eax
test esi, esi
je 0x40f159
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret 8